28 references to Literal
Microsoft.CodeAnalysis.CSharp (28)
Lowering\AsyncRewriter\AsyncIteratorMethodToStateMachineRewriter.cs (2)
142
return F.ExpressionStatement(F.Call(promiseField, _asyncIteratorInfo.SetResultMethod, F.
Literal
(result)));
349
return F.Assignment(F.InstanceField(_asyncIteratorInfo.DisposeModeField), F.
Literal
(value));
Lowering\AsyncRewriter\AsyncRewriter.AsyncIteratorRewriter.cs (2)
462
F.Assignment(F.InstanceField(_disposeModeField), F.
Literal
(true)), // disposeMode = true;
678
F.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)
520
return statementFactory.Assignment(payloadCell, statementFactory.
Literal
(true));
Lowering\IteratorRewriter\IteratorMethodToStateMachineRewriter.cs (3)
194
F.Return(F.
Literal
(false)));
205
F.Assignment(this.F.Local(_methodValue), this.F.
Literal
(true)),
290
BoundLiteral result = this.F.
Literal
(!finished);
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (1)
317
return _factory.New(ctor, _factory.Literal(index), _factory.
Literal
(false));
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (1)
635
return _factory.
Literal
(true);
Lowering\LocalRewriter\LocalRewriter_IsPatternOperator.cs (3)
127
resultBuilder.Add(_factory.Assignment(_factory.Local(resultTemp), _factory.
Literal
(true)));
130
resultBuilder.Add(_factory.Assignment(_factory.Local(resultTemp), _factory.
Literal
(false)));
304
AddConjunct(_factory.
Literal
(true));
Lowering\LocalRewriter\LocalRewriter_Range.cs (1)
205
ImmutableArray.Create<BoundExpression>(F.Literal(0), F.
Literal
(fromEnd)));
Lowering\SyntheticBoundNodeFactory.cs (3)
1831
return
Literal
(kind == BinaryOperatorKind.NullableNullEqual);
1846
value:
Literal
(kind == BinaryOperatorKind.NullableNullNotEqual),
1862
var whenNull = kind == BinaryOperatorKind.NullableNullEqual ?
Literal
(true) : null;
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListEnumeratorTypeSymbol.cs (3)
85
f.
Literal
(false),
88
f.
Literal
(true)),
102
return f.Block(f.Assignment(moveNextCalledFieldReference, f.
Literal
(false)), f.Return());
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeSymbol.cs (3)
527
return f.Return(f.
Literal
(false));
544
return f.Return(f.
Literal
(true));
551
return f.Return(f.
Literal
(true));
Symbols\Synthesized\Records\SynthesizedRecordEquals.cs (1)
162
retExpr = F.
Literal
(true);
Symbols\Synthesized\Records\SynthesizedRecordPrintMembers.cs (2)
137
F.CloseMethod(F.Return(F.
Literal
(false)));
226
block.Add(F.Return(F.
Literal
(true)));
Symbols\Synthesized\SynthesizedEmbeddedNativeIntegerAttributeSymbol.cs (1)
82
ImmutableArray.Create<BoundExpression>(factory.
Literal
(true))