7 references to Literal
Microsoft.CodeAnalysis.CSharp (1)
Syntax\SyntaxFactory.cs (1)
414
return
Literal
(ObjectDisplay.FormatLiteral(value, ObjectDisplayOptions.IncludeTypeSuffix), value);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
EnumMemberGenerator.cs (2)
146
SyntaxFactory.
Literal
(numericText[..2] + value.ToString("X"), value));
151
SyntaxFactory.
Literal
(numericText[..2] + Convert.ToString(value, 2), value));
ExpressionGenerator.cs (1)
85
long val => GenerateLiteralExpression(type, val, LiteralSpecialValues.Int64SpecialValues, formatString: null, canUseFieldReference, SyntaxFactory.
Literal
, x => x < 0, x => -x, "9223372036854775808"),
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
EnumMemberGenerator.cs (2)
146
SyntaxFactory.
Literal
(numericText[..2] + value.ToString("X"), value));
151
SyntaxFactory.
Literal
(numericText[..2] + Convert.ToString(value, 2), value));
ExpressionGenerator.cs (1)
85
long val => GenerateLiteralExpression(type, val, LiteralSpecialValues.Int64SpecialValues, formatString: null, canUseFieldReference, SyntaxFactory.
Literal
, x => x < 0, x => -x, "9223372036854775808"),