1 write to InitializerOpt
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
3409this.InitializerOpt = initializerOpt;
20 references to InitializerOpt
Microsoft.CodeAnalysis.CSharp (20)
Binder\RefSafetyAnalysis.cs (1)
482if (node.InitializerOpt is { } initializer)
FlowAnalysis\AbstractFlowPass.cs (3)
1290if (node.InitializerOpt != null) 1293VisitRvalue(node.InitializerOpt, isKnownToBeAnLvalue: node.LocalSymbol.RefKind != RefKind.None); 1298WriteArgument(node.InitializerOpt, node.LocalSymbol.RefKind, method: null);
FlowAnalysis\DefiniteAssignment.cs (3)
1560Debug.Assert(local.InitializerOpt == value || value == null); 2394if (node.InitializerOpt != null) 2396Assign(node, node.InitializerOpt);
FlowAnalysis\NullableWalker.cs (1)
3547var initializer = node.InitializerOpt;
Generated\BoundNodes.xml.Generated.cs (5)
3425if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(localSymbol, this.LocalSymbol) || declaredTypeOpt != this.DeclaredTypeOpt || initializerOpt != this.InitializerOpt || argumentsOpt != this.ArgumentsOpt || inferredType != this.InferredType) 10129this.Visit(node.InitializerOpt); 11339BoundExpression? initializerOpt = (BoundExpression?)this.Visit(node.InitializerOpt); 13415BoundExpression? initializerOpt = (BoundExpression?)this.Visit(node.InitializerOpt); 15771new TreeDumperNode("initializerOpt", null, new TreeDumperNode[] { Visit(node.InitializerOpt, null) }),
Lowering\LocalRewriter\LocalRewriter_FixedStatement.cs (1)
199BoundExpression? initializer = localDecl.InitializerOpt;
Lowering\LocalRewriter\LocalRewriter_LocalDeclaration.cs (1)
16return RewriteLocalDeclaration(node, node.Syntax, node.LocalSymbol, VisitExpression(node.InitializerOpt), node.HasErrors);
Lowering\LocalRewriter\LocalRewriter_UsingStatement.cs (2)
214Debug.Assert(localDeclaration.InitializerOpt is { }); 221BoundLocal boundLocal = new BoundLocal(declarationSyntax, localSymbol, localDeclaration.InitializerOpt.ConstantValueOpt, localType);
Operations\CSharpOperationFactory_Methods.cs (3)
54if (boundLocalDeclaration.InitializerOpt != null) 70initializerSyntax = boundLocalDeclaration.InitializerOpt.Syntax; 74IOperation value = Create(boundLocalDeclaration.InitializerOpt);