49 references to Literal
Microsoft.CodeAnalysis.CSharp (49)
Compiler\AnonymousTypeMethodBodySynthesizer.cs (1)
194BoundExpression retExpression = F.Literal(initHash);
Compiler\MethodBodySynthesizer.Lowered.cs (7)
90F.Assignment(F.Local(i), F.Literal(0)), 104F.Literal(16777619))), 109F.Literal(1))), 177F.Assignment(F.Local(i), F.Literal(0)), 193F.Literal(16777619))), 198F.Literal(1))), 364boundHashFactor ??= F.Literal(HASH_FACTOR);
Emitter\Model\SynthesizedPrivateImplementationDetailsStaticConstructor.cs (1)
55factory.Array(payloadArrayType.ElementType, factory.Binary(BinaryOperatorKind.Addition, factory.SpecialType(SpecialType.System_Int32), factory.MaximumMethodDefIndex(), factory.Literal(1))));
Lowering\AsyncRewriter\AsyncExceptionHandlerRewriter.cs (2)
277bodyStatements.Add(_F.Assignment(_F.Local(pendingBranchVar), _F.Literal(i))); 533_F.Literal(currentAwaitCatchFrame.handlers.Count + 1));
Lowering\AsyncRewriter\AsyncRewriter.AsyncIteratorRewriter.cs (1)
344F.Literal(1)),
Lowering\Instrumentation\CodeCoverageInstrumenter.cs (2)
234methodBodyFactory.Literal(dynamicAnalysisSpans.Length))); 518statementFactory.Literal(spansIndex));
Lowering\Instrumentation\LocalStateTracingInstrumenter.cs (1)
311MakeStoreLoggerArguments(parameterLogger.Parameters[0], parameter, parameter.Type, _factory.Parameter(parameter), refAssignmentSourceIndex: null, _factory.Literal((ushort)parameter.Ordinal)))));
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (1)
1071sectionBuilder.Add(_factory.Assignment(_factory.Local(_whenNodeIdentifierLocal), _factory.Literal(whenNodeInfo.WhenNodeIdentifier)));
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (4)
247return _factory.AssignmentExpression(output, _factory.Indexer(input, e.Property, _factory.Literal(e.Index))); 313return new BoundFromEndIndexExpression(_factory.Syntax, _factory.Literal(-index), 317return _factory.New(ctor, _factory.Literal(index), _factory.Literal(false)); 324var end = new BoundFromEndIndexExpression(_factory.Syntax, _factory.Literal(-e.EndIndex),
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (3)
2147loweredRight = _factory.Literal(shiftAmount); 2156_factory.IntSubtract(_factory.IntMultiply(_factory.Sizeof(leftType), _factory.Literal(8)), _factory.Literal(1)));
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (3)
108result = new BoundObjectCreationExpression(node.Syntax, ctor.AsMember((NamedTypeSymbol)node.Type), utf8Bytes, _factory.Literal(0), _factory.Literal(length)); 153ImmutableArray.Create<BoundExpression>(_factory.Literal(builder.Count)),
Lowering\LocalRewriter\LocalRewriter_FixedStatement.cs (1)
517BoundExpression lengthCheck = factory.Binary(BinaryOperatorKind.IntNotEqual, factory.SpecialType(SpecialType.System_Boolean), lengthCall, factory.Literal(0));
Lowering\LocalRewriter\LocalRewriter_IndexerAccess.cs (2)
393return _factory.Literal(0); 752rangeSizeExpr = F.Literal(unchecked(endConst - startConst));
Lowering\LocalRewriter\LocalRewriter_Range.cs (1)
205ImmutableArray.Create<BoundExpression>(F.Literal(0), F.Literal(fromEnd)));
Lowering\LocalRewriter\LoweredDynamicOperationFactory.cs (15)
102_factory.Literal((int)binderFlags), 135_factory.Literal((int)binderFlags), 138_factory.Literal((int)operatorKind.ToExpressionType()), 178_factory.Literal((int)binderFlags), 181_factory.Literal((int)operatorKind.ToExpressionType(isCompoundAssignment)), 241_factory.Literal((int)binderFlags), 277_factory.Literal((int)binderFlags), 320_factory.Literal((int)binderFlags), 347_factory.Literal(0), 379_factory.Literal((int)binderFlags), 420_factory.Literal((int)binderFlags), 449_factory.Literal((int)CSharpBinderFlags.None), 488_factory.Literal((int)binderFlags), 507_factory.Literal((int)0), 881return _factory.Call(null, argumentInfoFactory, _factory.Literal((int)flags), _factory.Literal(name));
Lowering\SyntheticBoundNodeFactory.cs (3)
681=> Literal((int)value); 1105ImmutableArray<BoundExpression> firstElementIndices = ArrayBuilder<BoundExpression>.GetInstance(rank, Literal(0)).ToImmutableAndFree(); 1426ImmutableArray.Create<BoundExpression>(Literal(elements.Length)),
Symbols\Synthesized\Records\SynthesizedRecordGetHashCode.cs (1)
117currentHashValue = F.Literal(0);