31 references to Literal
Microsoft.AspNetCore.Mvc.Api.Analyzers (1)
AddResponseTypeAttributeCodeFixAction.cs (1)
243
return SyntaxFactory.LiteralExpression(SyntaxKind.NumericLiteralExpression, SyntaxFactory.
Literal
(statusCode));
Microsoft.CodeAnalysis.CSharp.Features (1)
ConvertLinq\CSharpConvertLinqQueryToForEachProvider.cs (1)
319
LiteralExpression(SyntaxKind.NumericLiteralExpression,
Literal
(0)), // count = 0
Microsoft.CodeAnalysis.CSharp.NetAnalyzers (1)
Microsoft.NetCore.Analyzers\Performance\CSharpPreferLengthCountIsEmptyOverAny.Fixer.cs (1)
83
Literal
(0)
Microsoft.Interop.ComInterfaceGenerator (6)
ComInterfaceGeneratorHelpers.cs (1)
46
literals[i] = ExpressionElement(LiteralExpression(SyntaxKind.NumericLiteralExpression,
Literal
(bytes[i])));
Marshallers\IidParameterIndexMarshallerResolver.cs (3)
80
LiteralExpression(SyntaxKind.NumericLiteralExpression,
Literal
(0)))))),
108
LiteralExpression(SyntaxKind.NumericLiteralExpression,
Literal
(0))),
114
LiteralExpression(SyntaxKind.NumericLiteralExpression,
Literal
(0))),
Marshallers\ManagedHResultExceptionGeneratorResolver.cs (1)
91
Literal
(0))))
VirtualMethodPointerStubGenerator.cs (1)
75
Argument(LiteralExpression(SyntaxKind.NumericLiteralExpression,
Literal
(methodStub.VtableIndexData.Index)))),
Microsoft.Interop.JavaScript.JSImportGenerator (4)
JSExportGenerator.cs (3)
377
LiteralExpression(SyntaxKind.NumericLiteralExpression,
Literal
(nativeArg.NativeIndex + 2))))))));
389
LiteralExpression(SyntaxKind.NumericLiteralExpression,
Literal
(1)))));
414
Argument(LiteralExpression(SyntaxKind.NumericLiteralExpression,
Literal
(context.TypesHash))),
JSImportGenerator.cs (1)
310
LiteralExpression(SyntaxKind.NumericLiteralExpression,
Literal
(1)))))))
Microsoft.Interop.LibraryImportGenerator (1)
LibraryImportGenerator.cs (1)
132
Literal
((int)defaultDllImportSearchPathsAttribute.ConstructorArguments[0].Value!))))));
Microsoft.Interop.LibraryImportGenerator.Downlevel (1)
DownlevelLibraryImportGenerator.cs (1)
122
Literal
((int)defaultDllImportSearchPathsAttribute.ConstructorArguments[0].Value!))))));
Microsoft.Interop.SourceGeneration (16)
MarshalAsParser.cs (7)
51
Literal
((int)UnmanagedType))))
76
Literal
((int)UnmanagedType))))
85
LiteralExpression(SyntaxKind.NumericLiteralExpression,
Literal
(paramIndex))));
113
Literal
((int)UnmanagedType))))
123
Literal
((int)ArraySubType))))
134
Literal
(sizeParamIndex.ConstSize)))
142
Literal
(paramIndex)))
Marshalling\BoolMarshaller.cs (3)
70
LiteralExpression(SyntaxKind.NumericLiteralExpression,
Literal
(_trueValue)),
71
LiteralExpression(SyntaxKind.NumericLiteralExpression,
Literal
(_falseValue)))))));
90
LiteralExpression(SyntaxKind.NumericLiteralExpression,
Literal
(comparand)))));
Marshalling\ElementsMarshalling.cs (2)
92
return LiteralExpression(SyntaxKind.NumericLiteralExpression,
Literal
(size));
621
EqualsValueClause(LiteralExpression(SyntaxKind.NumericLiteralExpression,
Literal
(0)))))))
Marshalling\MarshallerHelpers.cs (1)
49
Argument(LiteralExpression(SyntaxKind.NumericLiteralExpression,
Literal
(errorCode))));
Marshalling\StatelessMarshallingStrategy.cs (1)
592
LiteralExpression(SyntaxKind.NumericLiteralExpression,
Literal
(0))));
Utils\SyntaxFactoryExtensions.cs (2)
97
public static LiteralExpressionSyntax IntLiteral(int number) => LiteralExpression(SyntaxKind.NumericLiteralExpression,
Literal
(number));
131
Literal
(0)))))))