64 references to Literal
Microsoft.CodeAnalysis.CSharp (64)
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)
290bodyStatements.Add(_F.Assignment(_F.Local(pendingBranchVar), _F.Literal(i))); 564_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)
316MakeStoreLoggerArguments(parameterLogger.Parameters[0], parameter, parameter.Type, _factory.Parameter(parameter), refAssignmentSourceIndex: null, _factory.Literal((ushort)parameter.Ordinal)))));
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)
2227loweredRight = _factory.Literal(shiftAmount); 2236_factory.IntSubtract(_factory.IntMultiply(_factory.Sizeof(leftType), _factory.Literal(8)), _factory.Literal(1)));
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (8)
578var call = _factory.Call(null, elementRef, inlineArrayLocal, _factory.Literal(i), useStrictArgumentRefKinds: true); 595_factory.Literal(arrayLength), 720_factory.Literal(0), 764_factory.Binary(BinaryOperatorKind.Addition, indexTemp.Type, indexTemp, _factory.Literal(1)), 1067_factory.Literal(0), 1101_factory.Binary(BinaryOperatorKind.Addition, indexTemp.Type, indexTemp, _factory.Literal(1)), 1260var otherElements = _factory.Literal(initialLength); 1377result: _factory.Literal(0)); // result is unused
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (3)
115result = new BoundObjectCreationExpression(node.Syntax, ctor.AsMember((NamedTypeSymbol)node.Type), utf8Bytes, _factory.Literal(0), _factory.Literal(length)); 614return _factory.Call(null, createSpan, rewrittenOperand, _factory.Literal(length), useStrictArgumentRefKinds: true);
Lowering\LocalRewriter\LocalRewriter_FixedStatement.cs (1)
550BoundExpression lengthCheck = factory.Binary(BinaryOperatorKind.IntNotEqual, factory.SpecialType(SpecialType.System_Boolean), lengthCall, factory.Literal(0));
Lowering\LocalRewriter\LocalRewriter_ForEachStatement.cs (1)
797BoundExpression arrayLength = rewriter._factory.Literal(length);
Lowering\LocalRewriter\LocalRewriter_IndexerAccess.cs (5)
266DeconstructRange(rewrittenRangeArg, _factory.Literal(length), localsBuilder, sideEffectsBuilder, out startExpr, out rangeSizeExpr); 287result = _factory.Call(_factory.Call(null, createSpan, possiblyRefCapturedReceiver, _factory.Literal(length), useStrictArgumentRefKinds: true), 315integerArgument = MakePatternIndexOffsetExpression(makeOffsetInput, _factory.Literal(length), strategy); 394return _factory.Call(_factory.Call(null, createSpan, rewrittenReceiver, _factory.Literal(length), useStrictArgumentRefKinds: true), getItemOrSliceHelper, index); 650return _factory.Literal(0);
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), 870return _factory.Call(null, argumentInfoFactory, _factory.Literal((int)flags), _factory.Literal(name));
Lowering\SyntheticBoundNodeFactory.cs (3)
719=> Literal((int)value); 1168ImmutableArray<BoundExpression> firstElementIndices = ArrayBuilder<BoundExpression>.GetInstance(rank, Literal(0)).ToImmutableAndFree(); 1550ImmutableArray.Create<BoundExpression>(Literal(elements.Length)),
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeSymbol.cs (4)
503f.Literal(1)); 662f.IntNotEqual(parameterReference, f.Literal(0)), 694f.Literal(0), 695f.Literal(-1),
Symbols\Synthesized\Records\SynthesizedRecordGetHashCode.cs (1)
115currentHashValue = F.Literal(0);