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