1 write to DeclarationsOpt
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
4126this.DeclarationsOpt = declarationsOpt;
15 references to DeclarationsOpt
Microsoft.CodeAnalysis.CSharp (15)
Binder\RefSafetyAnalysis.cs (1)
343this.Visit(node.DeclarationsOpt);
FlowAnalysis\AbstractFlowPass.cs (2)
3389if (node.DeclarationsOpt != null) 3391VisitStatement(node.DeclarationsOpt);
Generated\BoundNodes.xml.Generated.cs (5)
4145if (locals != this.Locals || declarationsOpt != this.DeclarationsOpt || expressionOpt != this.ExpressionOpt || body != this.Body || awaitOpt != this.AwaitOpt || patternDisposeInfoOpt != this.PatternDisposeInfoOpt) 10194this.Visit(node.DeclarationsOpt); 11407BoundMultipleLocalDeclarations? declarationsOpt = (BoundMultipleLocalDeclarations?)this.Visit(node.DeclarationsOpt); 13446BoundMultipleLocalDeclarations? declarationsOpt = (BoundMultipleLocalDeclarations?)this.Visit(node.DeclarationsOpt); 15897new TreeDumperNode("declarationsOpt", null, new TreeDumperNode[] { Visit(node.DeclarationsOpt, null) }),
Lowering\Instrumentation\CodeCoverageInstrumenter.cs (1)
544syntaxForSpan = ((BoundNode?)usingStatement.ExpressionOpt ?? usingStatement.DeclarationsOpt)!.Syntax;
Lowering\LocalRewriter\LocalRewriter_UsingStatement.cs (3)
50Debug.Assert(node.DeclarationsOpt is { }); 55node.DeclarationsOpt.LocalDeclarations, 111Debug.Assert(node.DeclarationsOpt == null);
Lowering\MethodToClassRewriter.cs (1)
203var declarations = (BoundMultipleLocalDeclarations?)this.Visit(node.DeclarationsOpt);
Operations\CSharpOperationFactory.cs (2)
2031Debug.Assert((boundUsingStatement.DeclarationsOpt == null) != (boundUsingStatement.ExpressionOpt == null)); 2033IOperation resources = Create(boundUsingStatement.DeclarationsOpt ?? (BoundNode)boundUsingStatement.ExpressionOpt!);