1 write to Expression
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
3675this.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)
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 (4)
3685if (expression != this.Expression) 10169this.Visit(node.Expression); 11379BoundExpression expression = (BoundExpression)this.Visit(node.Expression); 15829new TreeDumperNode("expression", null, new TreeDumperNode[] { Visit(node.Expression, null) }),
Lowering\AsyncRewriter\AsyncMethodToStateMachineRewriter.cs (5)
310if (node.Expression.Kind == BoundKind.AwaitExpression) 312return VisitAwaitExpression((BoundAwaitExpression)node.Expression, resultPlace: null); 314else if (node.Expression.Kind == BoundKind.AssignmentOperator) 316var expression = (BoundAssignmentOperator)node.Expression; 323BoundExpression 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); 361var rewrittenValue = rewriteCollectionInitializer(temp, ((BoundExpressionStatement)iteratorBody).Expression); 664var spreadElementHasIdentityConversion = expressionStatement.Expression is not BoundConversion; 946if (spreadElement.IteratorBody is not BoundExpressionStatement expressionStatement || expressionStatement.Expression is BoundConversion) 1254var 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)
823BoundExpression 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)