Base:
method
Visit
Microsoft.CodeAnalysis.CSharp.BoundTreeVisitor.Visit(Microsoft.CodeAnalysis.CSharp.BoundNode)
3 overrides of Visit
Microsoft.CodeAnalysis.CSharp (3)
CodeGen\Optimizer.cs (1)
2045public override BoundNode Visit(BoundNode node)
Lowering\LocalRewriter\LocalRewriter.cs (1)
203public override BoundNode? Visit(BoundNode? node)
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (1)
705public override BoundNode Visit(BoundNode node)
74 references to Visit
Microsoft.CodeAnalysis.CSharp (74)
BoundTree\BoundTreeRewriter.cs (7)
136var left = (BoundExpression?)this.Visit(child); 142var right = (BoundExpression?)this.Visit(binary.Right); 179alternative = (BoundStatement?)this.Visit(alternative); 185BoundExpression condition = (BoundExpression)this.Visit(ifStatement.Condition); 186BoundStatement consequence = (BoundStatement)this.Visit(ifStatement.Consequence); 225var left = (BoundPattern?)this.Visit(child); 231var right = (BoundPattern?)this.Visit(binary.Right);
CodeGen\EmitStatement.cs (1)
1944return (BoundBlock)cloner.Visit(node.FinallyBlockOpt);
CodeGen\Optimizer.cs (1)
2059result = base.Visit(node);
Compiler\MethodCompiler.cs (1)
2181var rewritten = rewriter.Visit(node);
Lowering\AsyncRewriter\AsyncExceptionHandlerRewriter.cs (10)
130var loweredStatement = (BoundStatement)rewriter.Visit(statement); 159rewrittenFinally = (BoundBlock)this.Visit(node.FinallyBlockOpt); 362BoundExpression caseExpressionOpt = (BoundExpression)this.Visit(node.CaseExpressionOpt); 363BoundLabel labelExpressionOpt = (BoundLabel)this.Visit(node.LabelExpressionOpt); 387var returnExpr = (BoundExpression)(this.Visit(node.ExpressionOpt)); 609var rewrittenPrologue = (BoundStatementList)this.Visit(filterPrologueOpt); 616prologueBuilder.Add(_F.ExpressionStatement(AssignCatchSource((BoundExpression)this.Visit(sourceOpt), currentAwaitCatchFrame))); 625var rewrittenFilter = (BoundExpression)this.Visit(filterOpt); 648BoundExpression assignSource = AssignCatchSource((BoundExpression)this.Visit(sourceOpt), currentAwaitCatchFrame); 653handlerStatements.Add((BoundStatement)this.Visit(node.Body));
Lowering\ClosureConversion\ClosureConversion.cs (12)
273(BoundStatement)rewriter.Visit(loweredBody)); 1140var replacement = (BoundExpression)this.Visit(effect); 1144var newValue = (BoundExpression)this.Visit(node.Value); 1179var replacement = (BoundStatement)this.Visit(statement); 1189var newPrologue = (BoundStatement)Visit(newInstrumentation.Prologue); 1190var newEpilogue = (BoundStatement)Visit(newInstrumentation.Epilogue); 1239var rewrittenFilterPrologue = (BoundStatementList)this.Visit(node.ExceptionFilterPrologueOpt); 1240var rewrittenFilter = (BoundExpression)this.Visit(node.ExceptionFilterOpt); 1243rewrittenExceptionSource = (BoundExpression)Visit(node.ExceptionSourceOpt); 1276var rewrittenBlock = (BoundBlock)this.Visit(node.Body); 1317newStatements.Add((BoundStatement)this.Visit(s)); 1626var newBody = (BoundBlock)Visit(node.Body);
Lowering\LocalRewriter\LocalRewriter.PlaceholderReplacer.cs (1)
23var 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)!, 158var newInstrumentation = removeInstrumentation ? null : (BoundBlockInstrumentation?)Visit(node.Instrumentation); 168var newValue = (BoundExpression)this.Visit(node.Value); 176var initializer = (BoundStatement?)this.Visit(node.Initializer); 178var condition = (BoundExpression?)this.Visit(node.Condition); 179var increment = (BoundStatement?)this.Visit(node.Increment); 180var body = (BoundStatement)this.Visit(node.Body); 187BoundExpression condition = (BoundExpression)this.Visit(node.Condition); 188BoundStatement body = (BoundStatement)this.Visit(node.Body); 195BoundExpression condition = (BoundExpression)this.Visit(node.Condition); 196BoundStatement body = (BoundStatement)this.Visit(node.Body); 203var declarations = (BoundMultipleLocalDeclarations?)this.Visit(node.DeclarationsOpt); 204var expression = (BoundExpression?)this.Visit(node.ExpressionOpt); 205var body = (BoundStatement)this.Visit(node.Body); 225var rewrittenReceiver = (BoundExpression?)Visit(node.ReceiverOpt); 232var 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), 466var getAwaiter = (BoundExpression?)this.Visit(node.GetAwaiter); 510BoundExpression rewrittenLeft = (BoundExpression)this.Visit(leftLocal); 511BoundExpression rewrittenRight = (BoundExpression)this.Visit(originalRight); 554var receiverOpt = (BoundExpression?)this.Visit(node.ReceiverOpt); 587BoundExpression rewrittenArgument = (BoundExpression)this.Visit(originalArgument); 608var receiver = (BoundExpression)this.Visit(node.Receiver); 609var whenNotNull = (BoundExpression)this.Visit(node.WhenNotNull); 610var whenNullOpt = (BoundExpression?)this.Visit(node.WhenNullOpt); 719BoundExpression operand = (BoundExpression)this.Visit(node.Operand);
Lowering\SpillSequenceSpiller.cs (6)
207return substituter.Visit(node); 237BoundNode result = spiller.Visit(body); 246var e = (BoundExpression)this.Visit(expression); 709BoundExpression exceptionSourceOpt = (BoundExpression)this.Visit(node.ExceptionSourceOpt); 723BoundBlock body = (BoundBlock)this.Visit(node.Body); 1372var result = (BoundStatement)replacer.Visit(node);
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (1)
710var result = base.Visit(node);