Base:
method
Visit
Microsoft.CodeAnalysis.CSharp.BoundTreeVisitor.Visit(Microsoft.CodeAnalysis.CSharp.BoundNode)
4 overrides of Visit
Microsoft.CodeAnalysis.CSharp (4)
CodeGen\Optimizer.cs (1)
2054
public override BoundNode
Visit
(BoundNode node)
Lowering\AsyncRewriter\RuntimeAsyncRewriter.cs (1)
91
public override BoundNode?
Visit
(BoundNode? node)
Lowering\LocalRewriter\LocalRewriter.cs (1)
203
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)
1951
return (BoundBlock)cloner.
Visit
(node.FinallyBlockOpt);
CodeGen\Optimizer.cs (1)
2068
result = base.
Visit
(node);
Compiler\MethodCompiler.cs (2)
1520
loweredBody = (BoundStatement)extensionRewriter.
Visit
(loweredBody);
2315
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));
669
var rewrittenPrologue = (BoundStatementList)this.
Visit
(filterPrologueOpt);
676
prologueBuilder.Add(_F.ExpressionStatement(AssignCatchSource((BoundExpression)this.
Visit
(sourceOpt), currentAwaitCatchFrame)));
685
var rewrittenFilter = (BoundExpression)this.
Visit
(filterOpt);
708
BoundExpression assignSource = AssignCatchSource((BoundExpression)this.
Visit
(sourceOpt), currentAwaitCatchFrame);
713
handlerStatements.Add((BoundStatement)this.
Visit
(node.Body));
Lowering\AsyncRewriter\RuntimeAsyncRewriter.cs (1)
96
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);
178
(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)
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);
285
BoundExpression rewrittenLeft = (BoundExpression)this.
Visit
(leftLocal);
286
BoundExpression rewrittenRight = (BoundExpression)this.
Visit
(originalRight);
329
var receiverOpt = (BoundExpression?)this.
Visit
(node.ReceiverOpt);
339
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);
733
BoundBlock body = (BoundBlock)this.
Visit
(node.Body);
1383
var result = (BoundStatement)replacer.
Visit
(node);
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (1)
519
var result = base.
Visit
(node);