4 references to Literal
Microsoft.CodeAnalysis.CSharp (1)
Syntax\SyntaxFactory.cs (1)
415
return
Literal
(ObjectDisplay.FormatLiteral(value, ObjectDisplayOptions.IncludeTypeSuffix), value);
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\EnumMemberGenerator.cs (2)
148
Literal
(numericText[..2] + value.ToString("X"), value));
153
Literal
(numericText[..2] + Convert.ToString(value, 2), value));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ExpressionGenerator.cs (1)
86
long val => GenerateLiteralExpression(type, val, LiteralSpecialValues.Int64SpecialValues, formatString: null, canUseFieldReference,
Literal
, x => x < 0, x => -x, "9223372036854775808"),