2 instantiations of BoundLocalDeclaration
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Statements.cs (1)
1152return new BoundLocalDeclaration(
Generated\BoundNodes.xml.Generated.cs (1)
3427var result = new BoundLocalDeclaration(this.Syntax, localSymbol, declaredTypeOpt, initializerOpt, argumentsOpt, inferredType, this.HasErrors);
63 references to BoundLocalDeclaration
Microsoft.CodeAnalysis.CSharp (63)
Binder\Binder_Statements.cs (9)
200ImmutableArray<BoundLocalDeclaration> declarations; 736BoundLocalDeclaration[] boundDeclarations = new BoundLocalDeclaration[variableCount]; 947protected BoundLocalDeclaration BindVariableDeclaration( 972protected BoundLocalDeclaration BindVariableDeclaration( 2794internal BoundStatement BindForOrUsingOrFixedDeclarations(VariableDeclarationSyntax nodeOpt, LocalDeclarationKind localKind, BindingDiagnosticBag diagnostics, out ImmutableArray<BoundLocalDeclaration> declarations) 2798declarations = ImmutableArray<BoundLocalDeclaration>.Empty; 2837var declarationArray = new BoundLocalDeclaration[count]; 2843var declaration = BindVariableDeclaration(localKind, isVar, variableDeclarator, typeSyntax, declType, alias, diagnostics, includeBoundType);
Binder\RefSafetyAnalysis.cs (1)
478public override BoundNode? VisitLocalDeclaration(BoundLocalDeclaration node)
Binder\SwitchBinder_Patterns.cs (1)
216if (boundStatement is BoundLocalDeclaration boundLocal)
Binder\UsingStatementBinder.cs (1)
108ImmutableArray<BoundLocalDeclaration> declarationsOpt = default;
BoundTree\BoundNode.cs (1)
586public override BoundNode? VisitLocalDeclaration(BoundLocalDeclaration node)
BoundTree\BoundTreeVisitors.cs (1)
74return VisitLocalDeclaration(node as BoundLocalDeclaration, arg);
FlowAnalysis\AbstractFlowPass.cs (2)
1288public override BoundNode VisitLocalDeclaration(BoundLocalDeclaration node) 2310foreach (var v in node.LocalDeclarations)
FlowAnalysis\DataFlowsOutWalker.cs (1)
141return ((BoundLocalDeclaration)node).LocalSymbol;
FlowAnalysis\DefiniteAssignment.cs (3)
1559var local = (BoundLocalDeclaration)node; 2382public override BoundNode VisitLocalDeclaration(BoundLocalDeclaration node)
FlowAnalysis\NullableWalker.cs (1)
3525public override BoundNode? VisitLocalDeclaration(BoundLocalDeclaration node)
FlowAnalysis\VariablesDeclaredWalker.cs (1)
90public override BoundNode VisitLocalDeclaration(BoundLocalDeclaration node)
Generated\BoundNodes.xml.Generated.cs (17)
3423public BoundLocalDeclaration Update(LocalSymbol localSymbol, BoundTypeExpression? declaredTypeOpt, BoundExpression? initializerOpt, ImmutableArray<BoundExpression> argumentsOpt, bool inferredType) 3427var result = new BoundLocalDeclaration(this.Syntax, localSymbol, declaredTypeOpt, initializerOpt, argumentsOpt, inferredType, this.HasErrors); 3437protected BoundMultipleLocalDeclarationsBase(BoundKind kind, SyntaxNode syntax, ImmutableArray<BoundLocalDeclaration> localDeclarations, bool hasErrors = false) 3446public ImmutableArray<BoundLocalDeclaration> LocalDeclarations { get; } 3451public BoundMultipleLocalDeclarations(SyntaxNode syntax, ImmutableArray<BoundLocalDeclaration> localDeclarations, bool hasErrors = false) 3463public BoundMultipleLocalDeclarations Update(ImmutableArray<BoundLocalDeclaration> localDeclarations) 3477public BoundUsingLocalDeclarations(SyntaxNode syntax, MethodArgumentInfo? patternDisposeInfoOpt, BoundAwaitableInfo? awaitOpt, ImmutableArray<BoundLocalDeclaration> localDeclarations, bool hasErrors = false) 3493public BoundUsingLocalDeclarations Update(MethodArgumentInfo? patternDisposeInfoOpt, BoundAwaitableInfo? awaitOpt, ImmutableArray<BoundLocalDeclaration> localDeclarations) 9042return VisitLocalDeclaration((BoundLocalDeclaration)node, arg); 9427public virtual R VisitLocalDeclaration(BoundLocalDeclaration node, A arg) => this.DefaultVisit(node, arg); 9663public virtual BoundNode? VisitLocalDeclaration(BoundLocalDeclaration node) => this.DefaultVisit(node); 10126public override BoundNode? VisitLocalDeclaration(BoundLocalDeclaration node) 11336public override BoundNode? VisitLocalDeclaration(BoundLocalDeclaration node) 11345ImmutableArray<BoundLocalDeclaration> localDeclarations = this.VisitList(node.LocalDeclarations); 11351ImmutableArray<BoundLocalDeclaration> localDeclarations = this.VisitList(node.LocalDeclarations); 13411public override BoundNode? VisitLocalDeclaration(BoundLocalDeclaration node) 15767public override TreeDumperNode VisitLocalDeclaration(BoundLocalDeclaration node, object? arg) => new TreeDumperNode("localDeclaration", null, new TreeDumperNode[]
Lowering\Instrumentation\CodeCoverageInstrumenter.cs (1)
384public override BoundStatement InstrumentUserDefinedLocalInitialization(BoundLocalDeclaration original, BoundStatement rewritten)
Lowering\Instrumentation\CompoundInstrumenter.cs (1)
149public override BoundStatement InstrumentUserDefinedLocalInitialization(BoundLocalDeclaration original, BoundStatement rewritten)
Lowering\Instrumentation\DebugInfoInjector.cs (1)
386public override BoundStatement InstrumentUserDefinedLocalInitialization(BoundLocalDeclaration original, BoundStatement rewritten)
Lowering\Instrumentation\Instrumenter.cs (1)
212public virtual BoundStatement InstrumentUserDefinedLocalInitialization(BoundLocalDeclaration original, BoundStatement rewritten)
Lowering\LocalRewriter\LocalRewriter_FixedStatement.cs (7)
19ImmutableArray<BoundLocalDeclaration> localDecls = node.Declarations.LocalDeclarations; 30BoundLocalDeclaration localDecl = localDecls[i]; 195BoundLocalDeclaration localDecl, 233BoundLocalDeclaration localDecl, 300BoundLocalDeclaration localDecl, 435BoundLocalDeclaration localDecl, 504BoundLocalDeclaration localDecl,
Lowering\LocalRewriter\LocalRewriter_LocalDeclaration.cs (3)
14public override BoundNode? VisitLocalDeclaration(BoundLocalDeclaration node) 19private BoundStatement? RewriteLocalDeclaration(BoundLocalDeclaration? originalOpt, SyntaxNode syntax, LocalSymbol localSymbol, BoundExpression? rewrittenInitializer, bool hasErrors = false) 72private BoundStatement InstrumentLocalDeclarationIfNecessary(BoundLocalDeclaration? originalOpt, LocalSymbol localSymbol, BoundStatement rewrittenLocalDeclaration)
Lowering\LocalRewriter\LocalRewriter_MultipleLocalDeclarations.cs (1)
28foreach (var decl in node.LocalDeclarations)
Lowering\LocalRewriter\LocalRewriter_UsingStatement.cs (2)
65ImmutableArray<BoundLocalDeclaration> declarations, 208BoundLocalDeclaration localDeclaration,
Operations\CSharpOperationFactory.cs (5)
203return CreateBoundLocalDeclarationOperation((BoundLocalDeclaration)boundNode); 402return ImmutableArray.Create(CreateVariableDeclaratorInternal((BoundLocalDeclaration)declaration, (declarationSyntax as VariableDeclarationSyntax)?.Variables[0] ?? declarationSyntax)); 409foreach (var decl in multipleDeclaration.LocalDeclarations) 526BoundTypeExpression? declaredTypeOpt = ((BoundLocalDeclaration)declaration).DeclaredTypeOpt; 2099private IOperation CreateBoundLocalDeclarationOperation(BoundLocalDeclaration boundLocalDeclaration)
Operations\CSharpOperationFactory_Methods.cs (2)
52internal IVariableInitializerOperation? CreateVariableDeclaratorInitializer(BoundLocalDeclaration boundLocalDeclaration, SyntaxNode syntax) 81private IVariableDeclaratorOperation CreateVariableDeclaratorInternal(BoundLocalDeclaration boundLocalDeclaration, SyntaxNode syntax)