1 write to Expression
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
3563this.Expression = expression;
30 references to Expression
Microsoft.CodeAnalysis.CSharp (29)
BoundTree\BoundNode_Source.cs (1)
187appendSource(expressionStatement.Expression);
BoundTree\BoundNodeExtensions.cs (1)
44BoundExpression expression = ((BoundExpressionStatement)statement).Expression;
CodeGen\EmitStatement.cs (1)
60EmitExpression(((BoundExpressionStatement)statement).Expression, false);
CodeGen\Optimizer.cs (1)
847this.VisitExpression(node.Expression, ExprContext.Sideeffects));
Compilation\CSharpSemanticModel.cs (1)
824BoundExpression expression = bnode.Expression;
Compilation\MemberSemanticModel.cs (1)
913BoundAwaitableInfo awaitableInfo = (((bound as BoundExpressionStatement)?.Expression ?? bound) as BoundAwaitExpression)?.AwaitableInfo;
Compiler\MethodCompiler.cs (2)
1891ReportCtorInitializerCycles(method, expressionStatement.Expression, compilationState, diagnostics); 1902expressionStatement.Expression is BoundCall { Method: var initMethod } && initMethod.IsDefaultValueTypeConstructor();
FlowAnalysis\AbstractFlowPass.cs (1)
1271VisitRvalue(node.Expression);
FlowAnalysis\NullableWalker.cs (1)
1413return constructorBody is BoundConstructorMethodBody { Initializer: BoundExpressionStatement { Expression: BoundCall { Method: { MethodKind: MethodKind.Constructor } initializerMethod } } }
Generated\BoundNodes.xml.Generated.cs (4)
3573if (expression != this.Expression) 9775this.Visit(node.Expression); 10947BoundExpression expression = (BoundExpression)this.Visit(node.Expression); 15232new TreeDumperNode("expression", null, new TreeDumperNode[] { Visit(node.Expression, null) }),
Lowering\AsyncRewriter\AsyncMethodToStateMachineRewriter.cs (5)
313if (node.Expression.Kind == BoundKind.AwaitExpression) 315return VisitAwaitExpression((BoundAwaitExpression)node.Expression, resultPlace: null); 317else if (node.Expression.Kind == BoundKind.AssignmentOperator) 319var expression = (BoundAssignmentOperator)node.Expression; 326BoundExpression expr = (BoundExpression)this.Visit(node.Expression);
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (1)
151return Visit(((BoundExpressionStatement)stmt).Expression);
Lowering\InitializerRewriter.cs (1)
85((BoundExpressionStatement)statement).Expression :
Lowering\LocalRewriter\LocalRewriter.cs (2)
771return ((BoundExpressionStatement)initializer).Expression.Kind == BoundKind.AssignmentOperator; 793BoundAssignmentOperator? assignment = ((BoundExpressionStatement)statement).Expression as BoundAssignmentOperator;
Lowering\LocalRewriter\LocalRewriter_ExpressionStatement.cs (1)
23var loweredExpression = VisitUnusedExpression(node.Expression);
Lowering\SpillSequenceSpiller.cs (1)
609BoundExpression expr = VisitExpression(ref builder, node.Expression);
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (1)
787BoundExpression expression = (BoundExpression)this.Visit(node.Expression);
Operations\CSharpOperationFactory.cs (3)
2100bool isImplicit = boundExpressionStatement.WasCompilerGenerated || boundExpressionStatement.Syntax == boundExpressionStatement.Expression.Syntax; 2105IOperation expression = Create(boundExpressionStatement.Expression); 2106if (boundExpressionStatement.Expression is BoundSequence sequence)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\OperatorTests.cs (1)
7335var exprs = block.Statements.SelectAsArray(stmt => ((BoundExpressionStatement)stmt).Expression);