1 write to InitializerOpt
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
3408this.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)
3486var initializer = node.InitializerOpt;
Generated\BoundNodes.xml.Generated.cs (5)
3424if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(localSymbol, this.LocalSymbol) || declaredTypeOpt != this.DeclaredTypeOpt || initializerOpt != this.InitializerOpt || argumentsOpt != this.ArgumentsOpt || inferredType != this.InferredType) 10092this.Visit(node.InitializerOpt); 11302BoundExpression? initializerOpt = (BoundExpression?)this.Visit(node.InitializerOpt); 13378BoundExpression? initializerOpt = (BoundExpression?)this.Visit(node.InitializerOpt); 15734new 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);