mirror of
https://github.com/FabInfra/capnproto-dotnetcore_Runtime.git
synced 2025-03-12 23:01:44 +01:00
Implement hex-base ulong literal.
This commit is contained in:
parent
dbe6c29f8b
commit
cb02be3896
@ -89,5 +89,9 @@ namespace CapnpC.Generator
|
||||
}
|
||||
}
|
||||
|
||||
static LiteralExpressionSyntax HexLiteral(ulong id) =>
|
||||
LiteralExpression(
|
||||
SyntaxKind.NumericLiteralExpression,
|
||||
Literal($"0x{id:x}UL", id));
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user