Base:
method
Visit
Microsoft.CodeAnalysis.CSharp.BoundTreeVisitor.Visit(Microsoft.CodeAnalysis.CSharp.BoundNode)
3 overrides of Visit
Microsoft.CodeAnalysis.CSharp (3)
CodeGen\Optimizer.cs (1)
2045
public override BoundNode
Visit
(BoundNode node)
Lowering\LocalRewriter\LocalRewriter.cs (1)
203
public override BoundNode?
Visit
(BoundNode? node)
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (1)
723
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)
2059
result = base.
Visit
(node);
Compiler\MethodCompiler.cs (2)
1497
loweredBody = (BoundStatement)extensionRewriter.
Visit
(loweredBody);
2281
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 (2)
104
var newInstrumentation = removeInstrumentation ? null : (BoundBlockInstrumentation?)
Visit
(node.Instrumentation);
132
(BoundExpression)
Visit
(node.Operand),
Lowering\ClosureConversion\ClosureConversion.cs (12)
273
(BoundStatement)rewriter.
Visit
(loweredBody));
1140
var replacement = (BoundExpression)this.
Visit
(effect);
1144
var newValue = (BoundExpression)this.
Visit
(node.Value);
1179
var replacement = (BoundStatement)this.
Visit
(statement);
1189
var newPrologue = (BoundStatement)
Visit
(newInstrumentation.Prologue);
1190
var newEpilogue = (BoundStatement)
Visit
(newInstrumentation.Epilogue);
1237
var rewrittenFilterPrologue = (BoundStatementList)this.
Visit
(node.ExceptionFilterPrologueOpt);
1238
var rewrittenFilter = (BoundExpression)this.
Visit
(node.ExceptionFilterOpt);
1241
rewrittenExceptionSource = (BoundExpression)
Visit
(node.ExceptionSourceOpt);
1274
var rewrittenBlock = (BoundBlock)this.
Visit
(node.Body);
1315
newStatements.Add((BoundStatement)this.
Visit
(s));
1624
var newBody = (BoundBlock)
Visit
(node.Body);
Lowering\ExtensionMethodBodyRewriter.cs (3)
96
BoundBlock body = (BoundBlock)this.
Visit
(node.Body);
108
BoundBlock? blockBody = (BoundBlock?)this.
Visit
(node.BlockBody);
109
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 (7)
95
var rewrittenReceiver = (BoundExpression?)
Visit
(node.ReceiverOpt);
102
var rewrittenReceiver = (BoundExpression?)this.
Visit
(node.ReceiverOpt);
268
var getAwaiter = (BoundExpression?)this.
Visit
(node.GetAwaiter);
312
BoundExpression rewrittenLeft = (BoundExpression)this.
Visit
(leftLocal);
313
BoundExpression rewrittenRight = (BoundExpression)this.
Visit
(originalRight);
356
var receiverOpt = (BoundExpression?)this.
Visit
(node.ReceiverOpt);
366
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)
728
var result = base.
Visit
(node);