1 write to Expression
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
3674this.Expression = expression;
38 references to Expression
Microsoft.CodeAnalysis.CSharp (38)
BoundTree\BoundNode_Source.cs (1)
202appendSource(expressionStatement.Expression);
BoundTree\BoundNodeExtensions.cs (1)
44BoundExpression expression = ((BoundExpressionStatement)statement).Expression;
CodeGen\EmitStatement.cs (1)
60EmitExpression(((BoundExpressionStatement)statement).Expression, false);
CodeGen\Optimizer.cs (1)
848this.VisitExpression(node.Expression, ExprContext.Sideeffects));
Compilation\CSharpSemanticModel.cs (1)
824BoundExpression expression = bnode.Expression;
Compilation\MemberSemanticModel.cs (1)
923BoundAwaitableInfo awaitableInfo = (((bound as BoundExpressionStatement)?.Expression ?? bound) as BoundAwaitExpression)?.AwaitableInfo;
Compiler\MethodCompiler.cs (2)
1856ReportCtorInitializerCycles(method, expressionStatement.Expression, compilationState, diagnostics); 1867expressionStatement.Expression is BoundCall { Method: var initMethod } && initMethod.IsDefaultValueTypeConstructor();
FlowAnalysis\AbstractFlowPass.cs (1)
1327VisitRvalue(node.Expression);
FlowAnalysis\NullableWalker.cs (2)
1461return constructorBody is BoundConstructorMethodBody { Initializer: BoundExpressionStatement { Expression: BoundCall { Method: { MethodKind: MethodKind.Constructor } initializerMethod } } } 3716var iteratorBody = ((BoundExpressionStatement)spread.IteratorBody).Expression;
FlowAnalysis\NullableWalker.DebugVerifier.cs (1)
141Visit(((BoundExpressionStatement?)spread.IteratorBody)?.Expression);
Generated\BoundNodes.xml.Generated.cs (4)
3684if (expression != this.Expression) 10132this.Visit(node.Expression); 11342BoundExpression expression = (BoundExpression)this.Visit(node.Expression); 15792new TreeDumperNode("expression", null, new TreeDumperNode[] { Visit(node.Expression, null) }),
Lowering\AsyncRewriter\AsyncMethodToStateMachineRewriter.cs (5)
307if (node.Expression.Kind == BoundKind.AwaitExpression) 309return VisitAwaitExpression((BoundAwaitExpression)node.Expression, resultPlace: null); 311else if (node.Expression.Kind == BoundKind.AssignmentOperator) 313var expression = (BoundAssignmentOperator)node.Expression; 320BoundExpression expr = (BoundExpression)this.Visit(node.Expression);
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (1)
149return Visit(((BoundExpressionStatement)stmt).Expression);
Lowering\InitializerRewriter.cs (1)
85((BoundExpressionStatement)statement).Expression :
Lowering\LocalRewriter\LocalRewriter.cs (2)
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); 354var rewrittenValue = rewriteCollectionInitializer(temp, ((BoundExpressionStatement)iteratorBody).Expression); 655&& expressionStatement.Expression is not BoundConversion) 901if (spreadElement.IteratorBody is not BoundExpressionStatement expressionStatement || expressionStatement.Expression is BoundConversion) 1209var rewrittenValue = VisitExpression(((BoundExpressionStatement)iteratorBody).Expression);
Lowering\LocalRewriter\LocalRewriter_ExpressionStatement.cs (1)
23var loweredExpression = VisitUnusedExpression(node.Expression);
Lowering\SpillSequenceSpiller.cs (1)
680BoundExpression expr = VisitExpression(ref builder, node.Expression);
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (1)
805BoundExpression expression = (BoundExpression)this.Visit(node.Expression);
Operations\CSharpOperationFactory.cs (4)
1268Binder.GetUnderlyingCollectionExpressionElement(expr, ((BoundExpressionStatement)iteratorBody).Expression, throwOnErrors: false) : 2211bool isImplicit = boundExpressionStatement.WasCompilerGenerated || boundExpressionStatement.Syntax == boundExpressionStatement.Expression.Syntax; 2216IOperation expression = Create(boundExpressionStatement.Expression); 2217if (boundExpressionStatement.Expression is BoundSequence sequence)