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