1 write to DeclaredType
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
8327this.DeclaredType = declaredType;
17 references to DeclaredType
Microsoft.CodeAnalysis.CSharp (17)
Binder\DecisionDagBuilder_CheckOrReachability.cs (5)
1064recursivePattern.DeclaredType ?? 1159if (node.DeclaredType is not null) 1162initialCheck = new BoundTypePattern(node.Syntax, node.DeclaredType, node.IsExplicitNotNullTest, isUnionMatching: false, node.InputType, node.NarrowedType, node.HasErrors); 1199newPattern.Syntax, declaredType: node.DeclaredType, deconstructMethod: node.DeconstructMethod, 1234newPattern.Syntax, declaredType: node.DeclaredType, deconstructMethod: null, deconstruction: default,
Binder\DecisionDagBuilder.cs (1)
940var inputType = recursive.DeclaredType?.Type ?? inputTempType.StrippedType();
Binder\UnionMatchingRewriter.cs (1)
117node.DeclaredType, node.DeconstructMethod, node.Deconstruction, node.Properties, node.IsExplicitNotNullTest, isUnionMatching: false, node.Variable, node.VariableAccess,
BoundTree\BoundNode_Source.cs (1)
402if (recursivePattern.DeclaredType is { } declaredType)
BoundTree\BoundRecursivePattern.cs (2)
15if (DeclaredType is null) 22Debug.Assert(NarrowedType.Equals(DeclaredType.Type, TypeCompareKind.AllIgnoreOptions));
FlowAnalysis\NullableWalker_Patterns.cs (1)
58Visit(node.DeclaredType);
Generated\BoundNodes.xml.Generated.cs (5)
8351if (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)) 10992this.Visit(node.DeclaredType); 12547BoundTypeExpression? declaredType = (BoundTypeExpression?)this.Visit(node.DeclaredType); 15246BoundTypeExpression? declaredType = (BoundTypeExpression?)this.Visit(node.DeclaredType); 17494new TreeDumperNode("declaredType", null, new TreeDumperNode[] { Visit(node.DeclaredType, null) }),
Operations\CSharpOperationFactory.cs (1)
2621ITypeSymbol matchedType = (boundRecursivePattern.DeclaredType?.Type ?? boundRecursivePattern.InputType.StrippedType()).GetPublicSymbol();