1 write to Variable
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
8274this.Variable = variable;
30 references to Variable
Microsoft.CodeAnalysis.CSharp (30)
Binder\DecisionDagBuilder_CheckOrReachability.cs (5)
1068isUnionMatching: false, recursivePattern.Variable, recursivePattern.VariableAccess, 1122var result = new BoundDeclarationPattern(node.Syntax, node.DeclaredType, node.IsVar, isUnionMatching: false, node.Variable, node.VariableAccess, node.InputType, node.NarrowedType) 1258if (_evalSequence.Count > startOfNestedPatterns || node.Variable is not null) 1386listPattern.ReceiverPlaceholder, listPattern.ArgumentPlaceholder, listPattern.Variable, listPattern.VariableAccess, 1417listPattern.ReceiverPlaceholder, listPattern.ArgumentPlaceholder, listPattern.Variable, listPattern.VariableAccess,
Binder\DecisionDagBuilder.cs (1)
608RoslynDebug.Assert(declaration.Variable == null);
Binder\RefSafetyAnalysis.cs (1)
747if (pattern.Variable is LocalSymbol local)
Binder\UnionMatchingRewriter.cs (3)
117node.DeclaredType, node.DeconstructMethod, node.Deconstruction, node.Properties, node.IsExplicitNotNullTest, isUnionMatching: false, node.Variable, node.VariableAccess, 126Symbol? variable = node.Variable; 147node.Update(node.DeclaredType, node.IsVar, isUnionMatching: false, 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.InputType, this.NarrowedType);
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)
8310if (declaredType != this.DeclaredType || isVar != this.IsVar || isUnionMatching != this.IsUnionMatching || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(variable, this.Variable) || variableAccess != this.VariableAccess || !TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything)) 8353if (declaredType != this.DeclaredType || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(deconstructMethod, this.DeconstructMethod) || deconstruction != this.Deconstruction || properties != this.Properties || isExplicitNotNullTest != this.IsExplicitNotNullTest || isUnionMatching != this.IsUnionMatching || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(variable, this.Variable) || variableAccess != this.VariableAccess || !TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything)) 8397if (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)) 12538Symbol? variable = this.VisitSymbol(node.Variable); 12548Symbol? variable = this.VisitSymbol(node.Variable); 12559Symbol? variable = this.VisitSymbol(node.Variable); 15234Symbol? variable = GetUpdatedSymbol(node, node.Variable); 15245Symbol? variable = GetUpdatedSymbol(node, node.Variable); 15257Symbol? variable = GetUpdatedSymbol(node, node.Variable); 17488new TreeDumperNode("variable", node.Variable, null), 17503new TreeDumperNode("variable", node.Variable, null), 17518new TreeDumperNode("variable", node.Variable, null),
Operations\CSharpOperationFactory.cs (3)
2623ISymbol? variable = boundDeclarationPattern.Variable.GetPublicSymbol(); 2652boundRecursivePattern.Variable.GetPublicSymbol(), 2709declaredSymbol: boundNode.Variable.GetPublicSymbol(),