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