1 write to LocalSymbol
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
3406
this.
LocalSymbol
= localSymbol;
22 references to LocalSymbol
Microsoft.CodeAnalysis.CSharp (22)
Binder\RefSafetyAnalysis.cs (1)
484
var localSymbol = (SourceLocalSymbol)node.
LocalSymbol
;
Binder\SwitchBinder_Patterns.cs (2)
218
return boundLocal.
LocalSymbol
.IsUsing;
222
return boundMultiple.LocalDeclarations[0].
LocalSymbol
.IsUsing;
Binder\UsingStatementBinder.cs (1)
197
: new BoundLocal(syntax, declarationsOpt[0].
LocalSymbol
, null, type) { WasCompilerGenerated = true };
BoundTree\BoundNode.cs (1)
588
CheckDeclared(node.
LocalSymbol
);
FlowAnalysis\AbstractFlowPass.cs (3)
1293
VisitRvalue(node.InitializerOpt, isKnownToBeAnLvalue: node.
LocalSymbol
.RefKind != RefKind.None);
1296
if (node.
LocalSymbol
.RefKind != RefKind.None)
1298
WriteArgument(node.InitializerOpt, node.
LocalSymbol
.RefKind, method: null);
FlowAnalysis\DataFlowsOutWalker.cs (1)
141
return ((BoundLocalDeclaration)node).
LocalSymbol
;
FlowAnalysis\DefiniteAssignment.cs (3)
1561
LocalSymbol symbol = local.
LocalSymbol
;
2384
_ = GetOrCreateSlot(node.
LocalSymbol
); // not initially assigned
2385
if (initiallyAssignedVariables?.Contains(node.
LocalSymbol
) == true)
FlowAnalysis\NullableWalker.cs (1)
3466
var local = node.
LocalSymbol
;
FlowAnalysis\VariablesDeclaredWalker.cs (1)
94
_variablesDeclared.Add(node.
LocalSymbol
);
Generated\BoundNodes.xml.Generated.cs (4)
3424
if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(localSymbol, this.
LocalSymbol
) || declaredTypeOpt != this.DeclaredTypeOpt || initializerOpt != this.InitializerOpt || argumentsOpt != this.ArgumentsOpt || inferredType != this.InferredType)
11304
return node.Update(node.
LocalSymbol
, declaredTypeOpt, initializerOpt, argumentsOpt, node.InferredType);
13376
LocalSymbol localSymbol = GetUpdatedSymbol(node, node.
LocalSymbol
);
15732
new TreeDumperNode("localSymbol", node.
LocalSymbol
, null),
Lowering\LocalRewriter\LocalRewriter_FixedStatement.cs (1)
202
LocalSymbol localSymbol = localDecl.
LocalSymbol
;
Lowering\LocalRewriter\LocalRewriter_LocalDeclaration.cs (1)
16
return RewriteLocalDeclaration(node, node.Syntax, node.
LocalSymbol
, VisitExpression(node.InitializerOpt), node.HasErrors);
Lowering\LocalRewriter\LocalRewriter_UsingStatement.cs (1)
217
LocalSymbol localSymbol = localDeclaration.
LocalSymbol
;
Operations\CSharpOperationFactory_Methods.cs (1)
83
ILocalSymbol symbol = boundLocalDeclaration.
LocalSymbol
.GetPublicSymbol();