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)
74 references to Visit
Microsoft.CodeAnalysis.CSharp (74)
BoundTree\BoundTreeRewriter.cs (7)
136
var left = (BoundExpression?)this.
Visit
(child);
142
var right = (BoundExpression?)this.
Visit
(binary.Right);
179
alternative = (BoundStatement?)this.
Visit
(alternative);
185
BoundExpression condition = (BoundExpression)this.
Visit
(ifStatement.Condition);
186
BoundStatement consequence = (BoundStatement)this.
Visit
(ifStatement.Consequence);
225
var left = (BoundPattern?)this.
Visit
(child);
231
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 (1)
2181
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\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);
1239
var rewrittenFilterPrologue = (BoundStatementList)this.
Visit
(node.ExceptionFilterPrologueOpt);
1240
var rewrittenFilter = (BoundExpression)this.
Visit
(node.ExceptionFilterOpt);
1243
rewrittenExceptionSource = (BoundExpression)
Visit
(node.ExceptionSourceOpt);
1276
var rewrittenBlock = (BoundBlock)this.
Visit
(node.Body);
1317
newStatements.Add((BoundStatement)this.
Visit
(s));
1626
var newBody = (BoundBlock)
Visit
(node.Body);
Lowering\LocalRewriter\LocalRewriter.PlaceholderReplacer.cs (1)
23
var result = new PlaceholderReplacer(placeholders).
Visit
(expr);
Lowering\MethodToClassRewriter.cs (34)
137
(BoundExpression?)this.
Visit
(node.ExceptionSourceOpt),
139
(BoundStatementList?)this.
Visit
(node.ExceptionFilterPrologueOpt),
140
(BoundExpression?)this.
Visit
(node.ExceptionFilterOpt),
141
(BoundBlock?)this.
Visit
(node.Body)!,
158
var newInstrumentation = removeInstrumentation ? null : (BoundBlockInstrumentation?)
Visit
(node.Instrumentation);
168
var newValue = (BoundExpression)this.
Visit
(node.Value);
176
var initializer = (BoundStatement?)this.
Visit
(node.Initializer);
178
var condition = (BoundExpression?)this.
Visit
(node.Condition);
179
var increment = (BoundStatement?)this.
Visit
(node.Increment);
180
var body = (BoundStatement)this.
Visit
(node.Body);
187
BoundExpression condition = (BoundExpression)this.
Visit
(node.Condition);
188
BoundStatement body = (BoundStatement)this.
Visit
(node.Body);
195
BoundExpression condition = (BoundExpression)this.
Visit
(node.Condition);
196
BoundStatement body = (BoundStatement)this.
Visit
(node.Body);
203
var declarations = (BoundMultipleLocalDeclarations?)this.
Visit
(node.DeclarationsOpt);
204
var expression = (BoundExpression?)this.
Visit
(node.ExpressionOpt);
205
var body = (BoundStatement)this.
Visit
(node.Body);
225
var rewrittenReceiver = (BoundExpression?)
Visit
(node.ReceiverOpt);
232
var rewrittenReceiver = (BoundExpression?)this.
Visit
(node.ReceiverOpt);
276
(BoundExpression)
Visit
(node.Left),
277
(BoundExpression)
Visit
(node.Right),
284
(BoundExpression)
Visit
(node.Operand),
301
(BoundExpression)
Visit
(node.Operand),
319
(BoundExpression)
Visit
(node.Left),
320
(BoundExpression)
Visit
(node.Right),
466
var getAwaiter = (BoundExpression?)this.
Visit
(node.GetAwaiter);
510
BoundExpression rewrittenLeft = (BoundExpression)this.
Visit
(leftLocal);
511
BoundExpression rewrittenRight = (BoundExpression)this.
Visit
(originalRight);
554
var receiverOpt = (BoundExpression?)this.
Visit
(node.ReceiverOpt);
587
BoundExpression rewrittenArgument = (BoundExpression)this.
Visit
(originalArgument);
608
var receiver = (BoundExpression)this.
Visit
(node.Receiver);
609
var whenNotNull = (BoundExpression)this.
Visit
(node.WhenNotNull);
610
var whenNullOpt = (BoundExpression?)this.
Visit
(node.WhenNullOpt);
719
BoundExpression operand = (BoundExpression)this.
Visit
(node.Operand);
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);