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