1 write to Variable
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
8291this.Variable = variable;
34 references to Variable
Microsoft.CodeAnalysis.CSharp (34)
Binder\DecisionDagBuilder.cs (1)
599RoslynDebug.Assert(declaration.Variable == null);
Binder\DecisionDagBuilder_CheckOrReachability.cs (5)
998recursivePattern.Variable, recursivePattern.VariableAccess, 1052var result = new BoundDeclarationPattern(node.Syntax, node.DeclaredType, node.IsVar, node.Variable, node.VariableAccess, isUnionMatching: false, node.InputType, node.NarrowedType) 1188if (_evalSequence.Count > startOfNestedPatterns || node.Variable is not null) 1316listPattern.ReceiverPlaceholder, listPattern.ArgumentPlaceholder, listPattern.Variable, listPattern.VariableAccess, 1347listPattern.ReceiverPlaceholder, listPattern.ArgumentPlaceholder, listPattern.Variable, listPattern.VariableAccess,
Binder\RefSafetyAnalysis.cs (1)
726if (pattern.Variable is LocalSymbol local)
Binder\UnionMatchingRewriter.cs (3)
114node.DeclaredType, node.DeconstructMethod, node.Deconstruction, node.Properties, node.IsExplicitNotNullTest, node.Variable, node.VariableAccess, 123Symbol? variable = node.Variable; 165node.Update(node.DeclaredType, node.IsVar, node.Variable, node.VariableAccess,
BoundTree\BoundListPattern.cs (1)
16return Update(subpatterns, this.HasSlice, this.LengthAccess, this.IndexerAccess, this.ReceiverPlaceholder, this.ArgumentPlaceholder, this.Variable, this.VariableAccess, this.IsUnionMatching, this.InputType, this.NarrowedType);
BoundTree\BoundNode_Source.cs (1)
446append(declarationPattern.Variable?.Name);
FlowAnalysis\AbstractFlowPass.cs (2)
961Variable: null, 977rewritten.IsExplicitNotNullTest, rewritten.Variable, rewritten.VariableAccess, rewritten.IsUnionMatching,
FlowAnalysis\DataFlowsOutWalker.cs (1)
124return ((BoundObjectPattern)node).Variable as LocalSymbol;
FlowAnalysis\DefiniteAssignment.cs (1)
1497var symbol = pattern.Variable as LocalSymbol;
FlowAnalysis\VariablesDeclaredWalker.cs (3)
74noteOneVariable(declarationPattern.Variable); 84noteOneVariable(recursivePattern.Variable); 97noteOneVariable(listPattern.Variable);
Generated\BoundNodes.xml.Generated.cs (12)
8327if (declaredType != this.DeclaredType || isVar != this.IsVar || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(variable, this.Variable) || variableAccess != this.VariableAccess || isUnionMatching != this.IsUnionMatching || !TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything)) 8368if (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 || isUnionMatching != this.IsUnionMatching || !TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything)) 8412if (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 || isUnionMatching != this.IsUnionMatching || !TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything)) 12542Symbol? variable = this.VisitSymbol(node.Variable); 12552Symbol? variable = this.VisitSymbol(node.Variable); 12563Symbol? variable = this.VisitSymbol(node.Variable); 15233Symbol? variable = GetUpdatedSymbol(node, node.Variable); 15244Symbol? variable = GetUpdatedSymbol(node, node.Variable); 15256Symbol? variable = GetUpdatedSymbol(node, node.Variable); 17482new TreeDumperNode("variable", node.Variable, null), 17497new TreeDumperNode("variable", node.Variable, null), 17513new TreeDumperNode("variable", node.Variable, null),
Operations\CSharpOperationFactory.cs (3)
2604ISymbol? variable = boundDeclarationPattern.Variable.GetPublicSymbol(); 2633boundRecursivePattern.Variable.GetPublicSymbol(), 2690declaredSymbol: boundNode.Variable.GetPublicSymbol(),