28 references to Literal
Microsoft.CodeAnalysis.CSharp (28)
Lowering\AsyncRewriter\AsyncIteratorMethodToStateMachineRewriter.cs (2)
131return F.ExpressionStatement(F.Call(promiseField, _asyncIteratorInfo.SetResultMethod, F.Literal(result))); 333return F.Assignment(F.InstanceField(_asyncIteratorInfo.DisposeModeField), F.Literal(value));
Lowering\AsyncRewriter\AsyncRewriter.AsyncIteratorRewriter.cs (2)
462F.Assignment(F.InstanceField(_disposeModeField), F.Literal(true)), // disposeMode = true; 678F.Assignment(F.InstanceField(_disposeModeField), F.Literal(false)));
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (1)
573_bound.Literal(isLifted && !TypeSymbol.Equals(methodOpt.ReturnType, type, TypeCompareKind.ConsiderEverything2)),
Lowering\Instrumentation\CodeCoverageInstrumenter.cs (1)
520return statementFactory.Assignment(payloadCell, statementFactory.Literal(true));
Lowering\IteratorRewriter\IteratorMethodToStateMachineRewriter.cs (3)
188F.Return(F.Literal(false))); 199F.Assignment(this.F.Local(_methodValue), this.F.Literal(true)), 284BoundLiteral result = this.F.Literal(!finished);
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (1)
317return _factory.New(ctor, _factory.Literal(index), _factory.Literal(false));
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (1)
635return _factory.Literal(true);
Lowering\LocalRewriter\LocalRewriter_IsPatternOperator.cs (3)
127resultBuilder.Add(_factory.Assignment(_factory.Local(resultTemp), _factory.Literal(true))); 130resultBuilder.Add(_factory.Assignment(_factory.Local(resultTemp), _factory.Literal(false))); 304AddConjunct(_factory.Literal(true));
Lowering\LocalRewriter\LocalRewriter_Range.cs (1)
205ImmutableArray.Create<BoundExpression>(F.Literal(0), F.Literal(fromEnd)));
Lowering\SyntheticBoundNodeFactory.cs (3)
1831return Literal(kind == BinaryOperatorKind.NullableNullEqual); 1846value: Literal(kind == BinaryOperatorKind.NullableNullNotEqual), 1862var whenNull = kind == BinaryOperatorKind.NullableNullEqual ? Literal(true) : null;
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListEnumeratorTypeSymbol.cs (3)
85f.Literal(false), 88f.Literal(true)), 102return f.Block(f.Assignment(moveNextCalledFieldReference, f.Literal(false)), f.Return());
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeSymbol.cs (3)
527return f.Return(f.Literal(false)); 544return f.Return(f.Literal(true)); 551return f.Return(f.Literal(true));
Symbols\Synthesized\Records\SynthesizedRecordEquals.cs (1)
162retExpr = F.Literal(true);
Symbols\Synthesized\Records\SynthesizedRecordPrintMembers.cs (2)
137F.CloseMethod(F.Return(F.Literal(false))); 226block.Add(F.Return(F.Literal(true)));
Symbols\Synthesized\SynthesizedEmbeddedNativeIntegerAttributeSymbol.cs (1)
82ImmutableArray.Create<BoundExpression>(factory.Literal(true))