Base:
method
Visit
Microsoft.CodeAnalysis.CSharp.BoundTreeVisitor.Visit(Microsoft.CodeAnalysis.CSharp.BoundNode)
4 overrides of Visit
Microsoft.CodeAnalysis.CSharp (4)
CodeGen\Optimizer.cs (1)
2103
public override BoundNode
Visit
(BoundNode node)
Lowering\AsyncRewriter\RuntimeAsyncRewriter.cs (1)
114
public override BoundNode?
Visit
(BoundNode? node)
Lowering\LocalRewriter\LocalRewriter.cs (1)
208
public override BoundNode?
Visit
(BoundNode? node)
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (1)
514
public override BoundNode
Visit
(BoundNode node)
59 references to Visit
Microsoft.CodeAnalysis.CSharp (59)
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)
1978
return (BoundBlock)cloner.
Visit
(node.FinallyBlockOpt);
CodeGen\Optimizer.cs (1)
2117
result = base.
Visit
(node);
Compiler\MethodCompiler.cs (2)
1537
loweredBody = (BoundStatement)extensionRewriter.
Visit
(loweredBody);
2336
var rewritten = rewriter.
Visit
(node);
Lowering\AsyncRewriter\AsyncExceptionHandlerRewriter.cs (10)
131
var loweredStatement = (BoundStatement)rewriter.
Visit
(statement);
196
rewrittenFinally = (BoundBlock)this.
Visit
(node.FinallyBlockOpt);
400
BoundExpression caseExpressionOpt = (BoundExpression)this.
Visit
(node.CaseExpressionOpt);
401
BoundLabel labelExpressionOpt = (BoundLabel)this.
Visit
(node.LabelExpressionOpt);
425
var returnExpr = (BoundExpression)(this.
Visit
(node.ExpressionOpt));
676
var rewrittenPrologue = (BoundStatementList)this.
Visit
(filterPrologueOpt);
683
prologueBuilder.Add(_F.ExpressionStatement(AssignCatchSource((BoundExpression)this.
Visit
(sourceOpt), currentAwaitCatchFrame)));
692
var rewrittenFilter = (BoundExpression)this.
Visit
(filterOpt);
715
BoundExpression assignSource = AssignCatchSource((BoundExpression)this.
Visit
(sourceOpt), currentAwaitCatchFrame);
720
handlerStatements.Add((BoundStatement)this.
Visit
(node.Body));
Lowering\AsyncRewriter\RuntimeAsyncRewriter.cs (1)
119
var result = base.
Visit
(node);
Lowering\BoundTreeToDifferentEnclosingContextRewriter.cs (4)
110
var newInstrumentation = removeInstrumentation ? null : (BoundBlockInstrumentation?)
Visit
(node.Instrumentation);
131
var getAwaiter = (BoundExpression?)this.
Visit
(node.GetAwaiter);
144
runtimeAsyncAwaitCall = (BoundCall?)this.
Visit
(node.RuntimeAsyncAwaitCall);
179
(BoundExpression)
Visit
(node.Operand),
Lowering\ClosureConversion\ClosureConversion.cs (12)
278
(BoundStatement)rewriter.
Visit
(loweredBody));
1155
var replacement = (BoundExpression)this.
Visit
(effect);
1159
var newValue = (BoundExpression)this.
Visit
(node.Value);
1194
var replacement = (BoundStatement)this.
Visit
(statement);
1204
var newPrologue = (BoundStatement)
Visit
(newInstrumentation.Prologue);
1205
var newEpilogue = (BoundStatement)
Visit
(newInstrumentation.Epilogue);
1252
var rewrittenFilterPrologue = (BoundStatementList)this.
Visit
(node.ExceptionFilterPrologueOpt);
1253
var rewrittenFilter = (BoundExpression)this.
Visit
(node.ExceptionFilterOpt);
1256
rewrittenExceptionSource = (BoundExpression)
Visit
(node.ExceptionSourceOpt);
1289
var rewrittenBlock = (BoundBlock)this.
Visit
(node.Body);
1330
newStatements.Add((BoundStatement)this.
Visit
(s));
1640
var newBody = (BoundBlock)
Visit
(node.Body);
Lowering\ExtensionMethodBodyRewriter.cs (3)
101
BoundBlock body = (BoundBlock)this.
Visit
(node.Body);
113
BoundBlock? blockBody = (BoundBlock?)this.
Visit
(node.BlockBody);
114
BoundBlock? expressionBody = (BoundBlock?)this.
Visit
(node.ExpressionBody);
Lowering\ExtensionMethodReferenceRewriter.cs (1)
26
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);
287
BoundExpression rewrittenLeft = (BoundExpression)this.
Visit
(leftLocal);
288
BoundExpression rewrittenRight = (BoundExpression)this.
Visit
(originalRight);
331
var receiverOpt = (BoundExpression?)this.
Visit
(node.ReceiverOpt);
341
BoundExpression rewrittenArgument = (BoundExpression)this.
Visit
(originalArgument);
Lowering\SpillSequenceSpiller.cs (7)
207
return substituter.
Visit
(node);
224
return
Visit
(receiver);
237
BoundNode result = spiller.
Visit
(body);
246
var e = (BoundExpression)this.
Visit
(expression);
711
BoundExpression? exceptionSourceOpt = (BoundExpression?)this.
Visit
(node.ExceptionSourceOpt);
734
BoundBlock body = (BoundBlock)this.
Visit
(node.Body);
1386
var result = (BoundStatement)replacer.
Visit
(node);
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (1)
519
var result = base.
Visit
(node);