75 references to ExpressionStatement
Microsoft.CodeAnalysis.CSharp (75)
Compiler\AnonymousTypeMethodBodySynthesizer.cs (2)
45
statements[statementIndex++] = F.
ExpressionStatement
(call);
121
BoundStatement assignment = F.
ExpressionStatement
(assignmentToTemp);
Compiler\MethodBodySynthesizer.Lowered.cs (1)
470
? F.Block(F.
ExpressionStatement
(invocation), F.Return())
FlowAnalysis\FlowAnalysisPass.cs (3)
129
F.
ExpressionStatement
(
142
F.
ExpressionStatement
(
151
F.
ExpressionStatement
(
Lowering\AsyncRewriter\AsyncExceptionHandlerRewriter.cs (5)
446
_F.
ExpressionStatement
(
589
_F.
ExpressionStatement
(storePending),
613
prologueBuilder.Add(_F.
ExpressionStatement
(storePending));
616
prologueBuilder.Add(_F.
ExpressionStatement
(AssignCatchSource((BoundExpression)this.Visit(sourceOpt), currentAwaitCatchFrame)));
649
handlerStatements.Add(_F.
ExpressionStatement
(assignSource));
Lowering\AsyncRewriter\AsyncIteratorMethodToStateMachineRewriter.cs (4)
142
return F.
ExpressionStatement
(F.Call(promiseField, _asyncIteratorInfo.SetResultMethod, F.Literal(result)));
157
return F.
ExpressionStatement
(
175
F.
ExpressionStatement
(F.Call(combinedTokens, F.WellKnownMethod(WellKnownMember.System_Threading_CancellationTokenSource__Dispose))),
194
builder.Add(F.
ExpressionStatement
(F.Call(
Lowering\AsyncRewriter\AsyncMethodToStateMachineRewriter.cs (7)
228
F.
ExpressionStatement
(F.AssignmentExpression(F.Field(F.This(), stateField), F.Literal(StateMachineState.FinishedState)));
255
return F.
ExpressionStatement
(
291
return F.
ExpressionStatement
(
396
F.
ExpressionStatement
(getResultCall);
582
F.
ExpressionStatement
(
594
F.
ExpressionStatement
(
648
return F.
ExpressionStatement
(result);
Lowering\AsyncRewriter\AsyncRewriter.AsyncIteratorRewriter.cs (5)
381
callReset = F.
ExpressionStatement
(F.Call(promiseField, resetMethod));
393
startCall = F.
ExpressionStatement
(
563
F.
ExpressionStatement
(
590
F.
ExpressionStatement
(F.Call(F.InstanceField(_promiseOfValueOrEndField), promise_GetResult, F.Parameter(IValueTaskSource_GetResult.Parameters[0]))),
636
F.
ExpressionStatement
(
Lowering\AsyncRewriter\AsyncRewriter.cs (2)
181
F.
ExpressionStatement
(
261
F.
ExpressionStatement
(
Lowering\Instrumentation\LocalStateTracingInstrumenter.cs (3)
315
prologueBuilder.Add(_factory.
ExpressionStatement
(_factory.Call(receiver: _factory.Local(_scope.ContextVariable), parameterLogger,
349
_factory.
ExpressionStatement
(_factory.Call(receiver: _factory.Local(_scope.ContextVariable), returnLogger)) : _factory.NoOp(NoOpStatementFlavor.Default);
531
var logCallStatement = _factory.
ExpressionStatement
(
Lowering\IteratorRewriter\IteratorMethodToStateMachineRewriter.cs (4)
147
var faultBlock = F.Block(F.
ExpressionStatement
(F.Call(F.This(), disposeMethod)));
281
F.Block(F.
ExpressionStatement
(F.Call(F.This(), frame.handler))));
431
bodyStatements.Add(F.
ExpressionStatement
(F.Call(F.This(), finallyMethod)));
449
bodyStatements.Add(F.
ExpressionStatement
(F.Call(F.This(), finallyMethod)));
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (3)
355
decisionDag = ShareTempsAndEvaluateInput(loweredSwitchGoverningExpression, decisionDag, expr => result.Add(_factory.
ExpressionStatement
(expr)), out savedInputExpression);
463
_loweredDecisionDag.Add(_factory.
ExpressionStatement
(sideEffect));
1207
_loweredDecisionDag.Add(_factory.
ExpressionStatement
(sideEffect));
Lowering\LocalRewriter\LocalRewriter_FixedStatement.cs (1)
570
BoundStatement localInit = factory.
ExpressionStatement
(
Lowering\LocalRewriter\LocalRewriter_ForEachStatement.cs (1)
756
collectionVarInitializationPreamble = rewriter._factory.
ExpressionStatement
(valueStore);
Lowering\LocalRewriter\LocalRewriter_PatternSwitchStatement.cs (1)
90
result.Add(_factory.
ExpressionStatement
(instrumentedExpression));
Lowering\LocalRewriter\LocalRewriter_StringInterpolation.cs (1)
133
return new InterpolationHandlerResult(ImmutableArray.Create(_factory.
ExpressionStatement
(handlerConstructionAssignment), resultIf), builderTemp, appendShouldProceedLocal.LocalSymbol, this);
Lowering\LocalRewriter\LocalRewriter_SwitchExpression.cs (3)
168
return factory.HiddenSequencePoint(factory.
ExpressionStatement
(call));
182
return factory.HiddenSequencePoint(factory.
ExpressionStatement
(call));
196
return factory.HiddenSequencePoint(factory.
ExpressionStatement
(call));
Lowering\SpillSequenceSpiller.cs (7)
363
builder.AddStatement(_F.
ExpressionStatement
(complexReceiver));
499
builder.AddStatement(_F.
ExpressionStatement
(expression));
514
builder.AddStatement(_F.
ExpressionStatement
(assignToTemp));
1058
receiverBuilder.AddStatement(_F.
ExpressionStatement
(new BoundComplexConditionalReceiver(node.Syntax, cache, _F.Sequence(new[] { _F.AssignmentExpression(cache, receiver) }, cache), receiverType) { WasCompilerGenerated = true }));
1128
UpdateStatement(consequenceBuilder, _F.
ExpressionStatement
(consequence)),
1129
UpdateStatement(alternativeBuilder, _F.
ExpressionStatement
(alternative))));
1325
var whenNotNullStatement = UpdateStatement(whenNotNullBuilder, _F.
ExpressionStatement
(whenNotNull));
Lowering\SyntheticBoundNodeFactory.cs (2)
410
return
ExpressionStatement
(AssignmentExpression(left, right, isRef));
1069
return
ExpressionStatement
(ex);
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListConstructor.cs (1)
35
f.
ExpressionStatement
(f.Call(f.This(), baseConstructor)),
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListEnumeratorConstructor.cs (1)
35
f.
ExpressionStatement
(f.Call(f.This(), baseConstructor)),
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeSymbol.cs (3)
606
statement = f.
ExpressionStatement
(
624
statement = f.
ExpressionStatement
(
637
statement = f.
ExpressionStatement
(
Symbols\Synthesized\Records\SynthesizedRecordPrintMembers.cs (4)
149
block.Add(F.
ExpressionStatement
(
211
block.Add(F.
ExpressionStatement
(
219
block.Add(F.
ExpressionStatement
(
238
return F.
ExpressionStatement
(F.Call(receiver: builder, F.WellKnownMethod(WellKnownMember.System_Text_StringBuilder__AppendString), F.StringLiteral(value)));
Symbols\Synthesized\Records\SynthesizedRecordToString.cs (2)
90
return F.
ExpressionStatement
(F.Call(receiver: builder, F.WellKnownMethod(WellKnownMember.System_Text_StringBuilder__AppendString), F.StringLiteral(value)));
95
return F.
ExpressionStatement
(F.Call(receiver: builder, F.WellKnownMethod(WellKnownMember.System_Text_StringBuilder__AppendChar), F.CharLiteral(value)));
Symbols\Synthesized\SynthesizedEmbeddedNativeIntegerAttributeSymbol.cs (2)
75
factory.
ExpressionStatement
(
92
factory.
ExpressionStatement
(
Symbols\Synthesized\SynthesizedEmbeddedNullableAttributeSymbol.cs (2)
79
factory.
ExpressionStatement
(
93
factory.
ExpressionStatement
(
Symbols\Synthesized\SynthesizedEmbeddedNullableContextAttributeSymbol.cs (1)
63
factory.
ExpressionStatement
(
Symbols\Synthesized\SynthesizedEmbeddedNullablePublicOnlyAttributeSymbol.cs (1)
60
factory.
ExpressionStatement
(
Symbols\Synthesized\SynthesizedEmbeddedRefSafetyRulesAttributeSymbol.cs (1)
55
factory.
ExpressionStatement
(
Symbols\Synthesized\SynthesizedHotReloadExceptionConstructorSymbol.cs (1)
57
factory.
ExpressionStatement
(factory.Call(
Symbols\Synthesized\SynthesizedInstanceConstructor.cs (1)
306
statements.Add(factory.
ExpressionStatement
(baseConstructorCall));