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