Base:
method
Visit
Microsoft.CodeAnalysis.CSharp.BoundTreeVisitor.Visit(Microsoft.CodeAnalysis.CSharp.BoundNode)
3 overrides of Visit
Microsoft.CodeAnalysis.CSharp (3)
CodeGen\Optimizer.cs (1)
2044
public override BoundNode
Visit
(BoundNode node)
Lowering\LocalRewriter\LocalRewriter.cs (1)
203
public override BoundNode?
Visit
(BoundNode? node)
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (1)
730
public override BoundNode
Visit
(BoundNode node)
56 references to Visit
Microsoft.CodeAnalysis.CSharp (56)
BoundTree\BoundTreeRewriter.cs (9)
252
return node.Update(node.OperatorKind, VisitBinaryOperatorData(node), node.ResultKind, (BoundExpression)this.
Visit
(node.Left), (BoundExpression)this.
Visit
(node.Right), this.VisitType(node.Type));
273
var left = (BoundExpression?)this.
Visit
(child);
279
var right = (BoundExpression?)this.
Visit
(binary.Right);
321
alternative = (BoundStatement?)this.
Visit
(alternative);
327
BoundExpression condition = (BoundExpression)this.
Visit
(ifStatement.Condition);
328
BoundStatement consequence = (BoundStatement)this.
Visit
(ifStatement.Consequence);
367
var left = (BoundPattern?)this.
Visit
(child);
373
var right = (BoundPattern?)this.
Visit
(binary.Right);
CodeGen\EmitStatement.cs (1)
1944
return (BoundBlock)cloner.
Visit
(node.FinallyBlockOpt);
CodeGen\Optimizer.cs (1)
2058
result = base.
Visit
(node);
Compiler\MethodCompiler.cs (2)
1496
loweredBody = (BoundStatement)extensionRewriter.
Visit
(loweredBody);
2280
var rewritten = rewriter.
Visit
(node);
Lowering\AsyncRewriter\AsyncExceptionHandlerRewriter.cs (10)
130
var loweredStatement = (BoundStatement)rewriter.
Visit
(statement);
159
rewrittenFinally = (BoundBlock)this.
Visit
(node.FinallyBlockOpt);
362
BoundExpression caseExpressionOpt = (BoundExpression)this.
Visit
(node.CaseExpressionOpt);
363
BoundLabel labelExpressionOpt = (BoundLabel)this.
Visit
(node.LabelExpressionOpt);
387
var returnExpr = (BoundExpression)(this.
Visit
(node.ExpressionOpt));
609
var rewrittenPrologue = (BoundStatementList)this.
Visit
(filterPrologueOpt);
616
prologueBuilder.Add(_F.ExpressionStatement(AssignCatchSource((BoundExpression)this.
Visit
(sourceOpt), currentAwaitCatchFrame)));
625
var rewrittenFilter = (BoundExpression)this.
Visit
(filterOpt);
648
BoundExpression assignSource = AssignCatchSource((BoundExpression)this.
Visit
(sourceOpt), currentAwaitCatchFrame);
653
handlerStatements.Add((BoundStatement)this.
Visit
(node.Body));
Lowering\BoundTreeToDifferentEnclosingContextRewriter.cs (3)
110
var newInstrumentation = removeInstrumentation ? null : (BoundBlockInstrumentation?)
Visit
(node.Instrumentation);
131
var getAwaiter = (BoundExpression?)this.
Visit
(node.GetAwaiter);
163
(BoundExpression)
Visit
(node.Operand),
Lowering\ClosureConversion\ClosureConversion.cs (12)
278
(BoundStatement)rewriter.
Visit
(loweredBody));
1145
var replacement = (BoundExpression)this.
Visit
(effect);
1149
var newValue = (BoundExpression)this.
Visit
(node.Value);
1184
var replacement = (BoundStatement)this.
Visit
(statement);
1194
var newPrologue = (BoundStatement)
Visit
(newInstrumentation.Prologue);
1195
var newEpilogue = (BoundStatement)
Visit
(newInstrumentation.Epilogue);
1242
var rewrittenFilterPrologue = (BoundStatementList)this.
Visit
(node.ExceptionFilterPrologueOpt);
1243
var rewrittenFilter = (BoundExpression)this.
Visit
(node.ExceptionFilterOpt);
1246
rewrittenExceptionSource = (BoundExpression)
Visit
(node.ExceptionSourceOpt);
1279
var rewrittenBlock = (BoundBlock)this.
Visit
(node.Body);
1320
newStatements.Add((BoundStatement)this.
Visit
(s));
1629
var newBody = (BoundBlock)
Visit
(node.Body);
Lowering\ExtensionMethodBodyRewriter.cs (3)
100
BoundBlock body = (BoundBlock)this.
Visit
(node.Body);
112
BoundBlock? blockBody = (BoundBlock?)this.
Visit
(node.BlockBody);
113
BoundBlock? expressionBody = (BoundBlock?)this.
Visit
(node.ExpressionBody);
Lowering\ExtensionMethodReferenceRewriter.cs (1)
25
return (BoundStatement)rewriter.
Visit
(statement);
Lowering\LocalRewriter\LocalRewriter.PlaceholderReplacer.cs (1)
23
var result = new PlaceholderReplacer(placeholders).
Visit
(expr);
Lowering\MethodToClassRewriter.cs (6)
92
var rewrittenReceiver = (BoundExpression?)
Visit
(node.ReceiverOpt);
99
var rewrittenReceiver = (BoundExpression?)this.
Visit
(node.ReceiverOpt);
284
BoundExpression rewrittenLeft = (BoundExpression)this.
Visit
(leftLocal);
285
BoundExpression rewrittenRight = (BoundExpression)this.
Visit
(originalRight);
328
var receiverOpt = (BoundExpression?)this.
Visit
(node.ReceiverOpt);
338
BoundExpression rewrittenArgument = (BoundExpression)this.
Visit
(originalArgument);
Lowering\SpillSequenceSpiller.cs (6)
207
return substituter.
Visit
(node);
237
BoundNode result = spiller.
Visit
(body);
246
var e = (BoundExpression)this.
Visit
(expression);
709
BoundExpression exceptionSourceOpt = (BoundExpression)this.
Visit
(node.ExceptionSourceOpt);
723
BoundBlock body = (BoundBlock)this.
Visit
(node.Body);
1372
var result = (BoundStatement)replacer.
Visit
(node);
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (1)
735
var result = base.
Visit
(node);