37 instantiations of BoundExpressionStatement
Microsoft.CodeAnalysis.CSharp (37)
Binder\Binder_Initializers.cs (1)
263statement = new BoundExpressionStatement(statement.Syntax, expression, expression.HasErrors);
Binder\Binder_Statements.cs (3)
660expressionStatement = new BoundExpressionStatement(node, expression, hasErrors: true); 664expressionStatement = new BoundExpressionStatement(node, expression); 3792var constructorInitializer = new BoundExpressionStatement(ctorSyntax, initializerInvocation) { WasCompilerGenerated = ((MethodSymbol)ContainingMember()).IsImplicitlyDeclared };
Compiler\MethodBodySynthesizer.cs (12)
43new BoundExpressionStatement(syntax, 102statements.Add(new BoundExpressionStatement(syntax, 120new BoundExpressionStatement(syntax, 148new BoundExpressionStatement(syntax, 199statement = new BoundExpressionStatement( 320BoundStatement callStatement = new BoundExpressionStatement(syntax, processHandlerCall); 407BoundStatement eventUpdate = new BoundExpressionStatement(syntax, 439BoundStatement tmp0Init = new BoundExpressionStatement(syntax, 453BoundStatement tmp1Update = new BoundExpressionStatement(syntax, 472BoundStatement tmp2Update = new BoundExpressionStatement(syntax, 488BoundStatement tmp0Update = new BoundExpressionStatement(syntax, 542BoundStatement baseFinalizeCall = new BoundExpressionStatement(
Compiler\MethodCompiler.cs (1)
2348var constructorInitializer = new BoundExpressionStatement(initializerInvocation.Syntax, initializerInvocation) { WasCompilerGenerated = method.IsImplicitlyDeclared };
Generated\BoundNodes.xml.Generated.cs (1)
3687var result = new BoundExpressionStatement(this.Syntax, expression, this.HasErrors);
Lowering\InitializerRewriter.cs (1)
98new BoundExpressionStatement(syntax,
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (1)
364new BoundExpressionStatement(syntax, rewrittenValue) :
Lowering\LocalRewriter\LocalRewriter_ForEachStatement.cs (5)
386disposeCallStatement = new BoundExpressionStatement(forEachSyntax, disposeCall); 446BoundStatement disposeCallStatement = new BoundExpressionStatement(forEachSyntax, expression: disposeCall); 480return new BoundExpressionStatement(forEachSyntax, awaitExpr); 830iterationVarDecl = new BoundExpressionStatement(assignment.Syntax, loweredAssignment); 1258statementOpt: new BoundExpressionStatement(syntax,
Lowering\LocalRewriter\LocalRewriter_LocalDeclaration.cs (1)
55BoundStatement rewrittenLocalDeclaration = new BoundExpressionStatement(
Lowering\LocalRewriter\LocalRewriter_LockStatement.cs (1)
67var expressionStatement = new BoundExpressionStatement(rewrittenArgument.Syntax, tempAssignment);
Lowering\LocalRewriter\LocalRewriter_UsingStatement.cs (3)
184BoundStatement expressionStatement = new BoundExpressionStatement(expressionSyntax, tempAssignment); 261new BoundExpressionStatement(declarationSyntax, tempAssignment), 376BoundStatement disposeStatement = new BoundExpressionStatement(resourceSyntax, disposeCall);
Lowering\SpillSequenceSpiller.cs (1)
162AddStatement(new BoundExpressionStatement(expression.Syntax, expression) { WasCompilerGenerated = true });
Lowering\SyntheticBoundNodeFactory.cs (2)
415return new BoundExpressionStatement(Syntax, expr) { WasCompilerGenerated = true }; 1189return new BoundExpressionStatement(Syntax, Call(Base(baseType), ctor)) { WasCompilerGenerated = true };
Symbols\Synthesized\SynthesizedEntryPointSymbol.cs (4)
404new BoundExpressionStatement( 505new BoundExpressionStatement( 518new BoundExpressionStatement(syntax, getAwaiterGetResultCall) { WasCompilerGenerated = true }, 582var submissionAssignment = new BoundExpressionStatement(
86 references to BoundExpressionStatement
Microsoft.CodeAnalysis.CSharp (86)
Binder\Binder_Statements.cs (10)
647private BoundExpressionStatement BindExpressionStatement(CSharpSyntaxNode node, ExpressionSyntax syntax, bool allowsAnyExpression, BindingDiagnosticBag diagnostics) 649BoundExpressionStatement expressionStatement; 3491var expressionStatement = new BoundExpressionStatement(syntax, expression, errors); 3682BoundExpressionStatement initializer; 3704internal virtual BoundExpressionStatement BindConstructorInitializer(PrimaryConstructorBaseTypeSyntax initializer, BindingDiagnosticBag diagnostics) 3707var constructorInitializer = new BoundExpressionStatement(initializer, initializerInvocation); 3770internal virtual BoundExpressionStatement BindConstructorInitializer(ConstructorInitializerSyntax initializer, BindingDiagnosticBag diagnostics) 3775var constructorInitializer = new BoundExpressionStatement(initializer, initializerInvocation); 3781internal BoundExpressionStatement? BindImplicitConstructorInitializer(SyntaxNode ctorSyntax, BindingDiagnosticBag diagnostics) 3792var constructorInitializer = new BoundExpressionStatement(ctorSyntax, initializerInvocation) { WasCompilerGenerated = ((MethodSymbol)ContainingMember()).IsImplicitlyDeclared };
BoundTree\BoundNode_Source.cs (1)
200case BoundExpressionStatement expressionStatement:
BoundTree\BoundNodeExtensions.cs (1)
44BoundExpression expression = ((BoundExpressionStatement)statement).Expression;
BoundTree\BoundTreeVisitors.cs (1)
86return VisitExpressionStatement(node as BoundExpressionStatement, arg);
CodeGen\EmitStatement.cs (2)
60EmitExpression(((BoundExpressionStatement)statement).Expression, false); 1996public override BoundNode VisitExpressionStatement(BoundExpressionStatement node)
CodeGen\Optimizer.cs (1)
845public override BoundNode VisitExpressionStatement(BoundExpressionStatement node)
Compilation\CSharpSemanticModel.cs (3)
812BoundExpressionStatement bnode = binder.BindConstructorInitializer(constructorInitializer, BindingDiagnosticBag.Discarded); 822private static SymbolInfo GetSymbolInfoFromBoundConstructorInitializer(MemberSemanticModel memberModel, Binder binder, BoundExpressionStatement bnode) 885BoundExpressionStatement bnode = binder.BindConstructorInitializer(constructorInitializer, BindingDiagnosticBag.Discarded);
Compilation\MemberSemanticModel.cs (5)
923BoundAwaitableInfo awaitableInfo = (((bound as BoundExpressionStatement)?.Expression ?? bound) as BoundAwaitExpression)?.AwaitableInfo; 2502internal override BoundExpressionStatement BindConstructorInitializer(ConstructorInitializerSyntax node, BindingDiagnosticBag diagnostics) 2504return (BoundExpressionStatement)TryGetBoundNodeFromMap(node) ?? base.BindConstructorInitializer(node, diagnostics); 2507internal override BoundExpressionStatement BindConstructorInitializer(PrimaryConstructorBaseTypeSyntax node, BindingDiagnosticBag diagnostics) 2509return (BoundExpressionStatement)TryGetBoundNodeFromMap(node) ?? base.BindConstructorInitializer(node, diagnostics);
Compiler\MethodCompiler.cs (2)
1854if (constructor.Initializer is BoundExpressionStatement expressionStatement) 2348var constructorInitializer = new BoundExpressionStatement(initializerInvocation.Syntax, initializerInvocation) { WasCompilerGenerated = method.IsImplicitlyDeclared };
FlowAnalysis\AbstractFlowPass.cs (1)
1325public override BoundNode VisitExpressionStatement(BoundExpressionStatement node)
FlowAnalysis\NullableWalker.cs (2)
1522return constructorBody is BoundConstructorMethodBody { Initializer: BoundExpressionStatement { Expression: BoundCall { Method: { MethodKind: MethodKind.Constructor } initializerMethod } } } 3777var iteratorBody = ((BoundExpressionStatement)spread.IteratorBody).Expression;
FlowAnalysis\NullableWalker.DebugVerifier.cs (1)
141Visit(((BoundExpressionStatement?)spread.IteratorBody)?.Expression);
Generated\BoundNodes.xml.Generated.cs (8)
3683public BoundExpressionStatement Update(BoundExpression expression) 3687var result = new BoundExpressionStatement(this.Syntax, expression, this.HasErrors); 9060return VisitExpressionStatement((BoundExpressionStatement)node, arg); 9436public virtual R VisitExpressionStatement(BoundExpressionStatement node, A arg) => this.DefaultVisit(node, arg); 9672public virtual BoundNode? VisitExpressionStatement(BoundExpressionStatement node) => this.DefaultVisit(node); 10167public override BoundNode? VisitExpressionStatement(BoundExpressionStatement node) 11377public override BoundNode? VisitExpressionStatement(BoundExpressionStatement node) 15827public override TreeDumperNode VisitExpressionStatement(BoundExpressionStatement node, object? arg) => new TreeDumperNode("expressionStatement", null, new TreeDumperNode[]
Lowering\AsyncRewriter\AsyncExceptionHandlerRewriter.cs (3)
408var objInit = _F.Assignment(_F.Local(obj), _F.Local(pendingExceptionLocal)); 436var assignment = _F.Assignment( 562var setPendingCatchNum = _F.Assignment(
Lowering\AsyncRewriter\AsyncIteratorMethodToStateMachineRewriter.cs (4)
137BoundExpressionStatement generateSetResultOnPromise(bool result) 146private BoundExpressionStatement GenerateClearCurrent() 153private BoundExpressionStatement GenerateCompleteOnBuilder() 347private BoundExpressionStatement SetDisposeMode(bool value)
Lowering\AsyncRewriter\AsyncMethodToStateMachineRewriter.cs (2)
167var stateDone = F.Assignment(F.Field(F.This(), stateField), F.Literal(StateMachineState.FinishedState)); 308public sealed override BoundNode VisitExpressionStatement(BoundExpressionStatement node)
Lowering\AsyncRewriter\AsyncRewriter.AsyncIteratorRewriter.cs (8)
189private BoundExpressionStatement GenerateCreateAndAssignBuilder() 323GetPartsForStartingMachine(out BoundExpressionStatement callReset, 326out BoundExpressionStatement startCall, 338var versionInit = F.Assignment(versionLocal, F.Call(F.Field(F.This(), _promiseOfValueOrEndField), promise_get_Version)); 367private void GetPartsForStartingMachine(out BoundExpressionStatement callReset, out LocalSymbol instSymbol, out BoundStatement instAssignment, 368out BoundExpressionStatement startCall, out MethodSymbol promise_get_Version) 433GetPartsForStartingMachine(out BoundExpressionStatement callReset, 436out BoundExpressionStatement startCall,
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (1)
149return Visit(((BoundExpressionStatement)stmt).Expression);
Lowering\InitializerRewriter.cs (1)
85((BoundExpressionStatement)statement).Expression :
Lowering\Instrumentation\CodeCoverageInstrumenter.cs (2)
165private static BoundExpressionStatement GetCreatePayloadStatement( 334public override BoundStatement InstrumentExpressionStatement(BoundExpressionStatement original, BoundStatement rewritten)
Lowering\Instrumentation\CompoundInstrumenter.cs (1)
69public override BoundStatement InstrumentExpressionStatement(BoundExpressionStatement original, BoundStatement rewritten)
Lowering\Instrumentation\DebugInfoInjector.cs (1)
55public override BoundStatement InstrumentExpressionStatement(BoundExpressionStatement original, BoundStatement rewritten)
Lowering\Instrumentation\Instrumenter.cs (1)
96public virtual BoundStatement InstrumentExpressionStatement(BoundExpressionStatement original, BoundStatement rewritten)
Lowering\Instrumentation\LocalStateTracingInstrumenter.cs (1)
531var logCallStatement = _factory.ExpressionStatement(
Lowering\IteratorRewriter\IteratorMethodToStateMachineRewriter.YieldsInTryAnalysis.cs (1)
108public override BoundNode VisitExpressionStatement(BoundExpressionStatement node)
Lowering\LocalRewriter\LocalRewriter.cs (4)
713var statement = RewriteExpressionStatement((BoundExpressionStatement)block.Statements.Single(), suppressInstrumentation: true); 724var statement = RewriteExpressionStatement((BoundExpressionStatement)initializer, suppressInstrumentation: true); 894return ((BoundExpressionStatement)initializer).Expression.Kind == BoundKind.AssignmentOperator; 916BoundAssignmentOperator? assignment = ((BoundExpressionStatement)statement).Expression as BoundAssignmentOperator;
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (6)
120expr = ((BoundExpressionStatement)spreadElement.IteratorBody).Expression; 138var iteratorBody = Binder.GetUnderlyingCollectionExpressionElement(node, ((BoundExpressionStatement)spreadElement.IteratorBody).Expression, throwOnErrors: true); 361var rewrittenValue = rewriteCollectionInitializer(temp, ((BoundExpressionStatement)iteratorBody).Expression); 662&& spreadElement.IteratorBody is BoundExpressionStatement expressionStatement) 946if (spreadElement.IteratorBody is not BoundExpressionStatement expressionStatement || expressionStatement.Expression is BoundConversion) 1254var rewrittenValue = VisitExpression(((BoundExpressionStatement)iteratorBody).Expression);
Lowering\LocalRewriter\LocalRewriter_ExpressionStatement.cs (2)
14public override BoundNode VisitExpressionStatement(BoundExpressionStatement node) 21private BoundStatement? RewriteExpressionStatement(BoundExpressionStatement node, bool suppressInstrumentation = false)
Lowering\LocalRewriter\LocalRewriter_LockStatement.cs (1)
67var expressionStatement = new BoundExpressionStatement(rewrittenArgument.Syntax, tempAssignment);
Lowering\SpillSequenceSpiller.cs (1)
677public override BoundNode VisitExpressionStatement(BoundExpressionStatement node)
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (2)
819public override BoundNode VisitExpressionStatement(BoundExpressionStatement node) 935protected BoundExpressionStatement GenerateSetBothStates(StateMachineState stateNumber)
Lowering\SyntheticBoundNodeFactory.cs (2)
408public BoundExpressionStatement Assignment(BoundExpression left, BoundExpression right, bool isRef = false) 413public BoundExpressionStatement ExpressionStatement(BoundExpression expr)
Operations\CSharpOperationFactory.cs (3)
212return CreateBoundExpressionStatementOperation((BoundExpressionStatement)boundNode); 1268Binder.GetUnderlyingCollectionExpressionElement(expr, ((BoundExpressionStatement)iteratorBody).Expression, throwOnErrors: false) : 2206private IExpressionStatementOperation CreateBoundExpressionStatementOperation(BoundExpressionStatement boundExpressionStatement)
Symbols\Synthesized\SynthesizedEntryPointSymbol.cs (1)
582var submissionAssignment = new BoundExpressionStatement(