Implement hex-base ulong literal.

This commit is contained in:
Kuba Ober 2019-09-18 13:58:28 -04:00
parent dbe6c29f8b
commit cb02be3896

View File

@ -89,5 +89,9 @@ namespace CapnpC.Generator
}
}
static LiteralExpressionSyntax HexLiteral(ulong id) =>
LiteralExpression(
SyntaxKind.NumericLiteralExpression,
Literal($"0x{id:x}UL", id));
}
}