Skip to content

Commit

Permalink
fix: include field 'deprecated' in ir encoding and decoding
Browse files Browse the repository at this point in the history
  • Loading branch information
klittlepage committed Feb 4, 2025
1 parent 0da03ae commit 499b71d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ private Token decodeToken()
.byteOrder(mapByteOrder(tokenDecoder.byteOrder()))
.presence(mapPresence(tokenDecoder.presence()));

tokenBuilder.deprecated(tokenDecoder.deprecated());
tokenBuilder.name(tokenDecoder.name());

encBuilder.constValue(get(valBuffer, type, tokenDecoder.getConstValue(valArray, 0, valArray.length)));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,8 @@ private int encodeToken(final Token token)
.signal(mapSignal(token.signal()))
.primitiveType(mapPrimitiveType(type))
.byteOrder(mapByteOrder(encoding.byteOrder()))
.presence(mapPresence(encoding.presence()));
.presence(mapPresence(encoding.presence()))
.deprecated(token.deprecated());

try
{
Expand Down

0 comments on commit 499b71d

Please sign in to comment.