1 write to Variable
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
8103this.Variable = variable;
28 references to Variable
Microsoft.CodeAnalysis.CSharp (28)
Binder\DecisionDagBuilder.cs (1)
412RoslynDebug.Assert(declaration.Variable == null);
Binder\DecisionDagBuilder_CheckOrReachability.cs (5)
989recursivePattern.Variable, recursivePattern.VariableAccess, 1043var result = new BoundDeclarationPattern(node.Syntax, node.DeclaredType, node.IsVar, node.Variable, node.VariableAccess, node.InputType, node.NarrowedType) 1179if (_evalSequence.Count > startOfNestedPatterns || node.Variable is not null) 1307listPattern.ReceiverPlaceholder, listPattern.ArgumentPlaceholder, listPattern.Variable, listPattern.VariableAccess, 1338listPattern.ReceiverPlaceholder, listPattern.ArgumentPlaceholder, listPattern.Variable, listPattern.VariableAccess,
Binder\RefSafetyAnalysis.cs (1)
707if (pattern.Variable is LocalSymbol local)
BoundTree\BoundListPattern.cs (1)
15return Update(subpatterns, this.HasSlice, this.LengthAccess, this.IndexerAccess, this.ReceiverPlaceholder, this.ArgumentPlaceholder, this.Variable, this.VariableAccess, this.InputType, this.NarrowedType);
BoundTree\BoundNode_Source.cs (1)
446append(declarationPattern.Variable?.Name);
FlowAnalysis\DataFlowsOutWalker.cs (1)
124return ((BoundObjectPattern)node).Variable as LocalSymbol;
FlowAnalysis\DefiniteAssignment.cs (1)
1496var symbol = pattern.Variable as LocalSymbol;
FlowAnalysis\VariablesDeclaredWalker.cs (2)
79if (p.Variable?.Kind == SymbolKind.Local) 83_variablesDeclared.Add(p.Variable);
Generated\BoundNodes.xml.Generated.cs (12)
8137if (declaredType != this.DeclaredType || isVar != this.IsVar || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(variable, this.Variable) || variableAccess != this.VariableAccess || !TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything)) 8178if (declaredType != this.DeclaredType || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(deconstructMethod, this.DeconstructMethod) || deconstruction != this.Deconstruction || properties != this.Properties || isExplicitNotNullTest != this.IsExplicitNotNullTest || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(variable, this.Variable) || variableAccess != this.VariableAccess || !TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything)) 8222if (subpatterns != this.Subpatterns || hasSlice != this.HasSlice || lengthAccess != this.LengthAccess || indexerAccess != this.IndexerAccess || receiverPlaceholder != this.ReceiverPlaceholder || argumentPlaceholder != this.ArgumentPlaceholder || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(variable, this.Variable) || variableAccess != this.VariableAccess || !TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything)) 12244Symbol? variable = this.VisitSymbol(node.Variable); 12254Symbol? variable = this.VisitSymbol(node.Variable); 12265Symbol? variable = this.VisitSymbol(node.Variable); 14901Symbol? variable = GetUpdatedSymbol(node, node.Variable); 14912Symbol? variable = GetUpdatedSymbol(node, node.Variable); 14924Symbol? variable = GetUpdatedSymbol(node, node.Variable); 17094new TreeDumperNode("variable", node.Variable, null), 17108new TreeDumperNode("variable", node.Variable, null), 17123new TreeDumperNode("variable", node.Variable, null),
Operations\CSharpOperationFactory.cs (3)
2538ISymbol? variable = boundDeclarationPattern.Variable.GetPublicSymbol(); 2567boundRecursivePattern.Variable.GetPublicSymbol(), 2624declaredSymbol: boundNode.Variable.GetPublicSymbol(),