1 write to DeclaredType
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
8346
this.
DeclaredType
= declaredType;
19 references to DeclaredType
Microsoft.CodeAnalysis.CSharp (19)
Binder\DecisionDagBuilder.cs (1)
929
var inputType = recursive.
DeclaredType
?.Type ?? inputTempType.StrippedType();
Binder\DecisionDagBuilder_CheckOrReachability.cs (5)
994
recursivePattern.
DeclaredType
??
1089
if (node.
DeclaredType
is not null)
1092
initialCheck = new BoundTypePattern(node.Syntax, node.
DeclaredType
, node.IsExplicitNotNullTest, isUnionMatching: false, node.InputType, node.NarrowedType, node.HasErrors);
1129
newPattern.Syntax, declaredType: node.
DeclaredType
, deconstructMethod: node.DeconstructMethod,
1164
newPattern.Syntax, declaredType: node.
DeclaredType
, deconstructMethod: null, deconstruction: default,
Binder\UnionMatchingRewriter.cs (1)
114
node.
DeclaredType
, node.DeconstructMethod, node.Deconstruction, node.Properties, node.IsExplicitNotNullTest, node.Variable, node.VariableAccess,
BoundTree\BoundNode_Source.cs (1)
402
if (recursivePattern.
DeclaredType
is { } declaredType)
BoundTree\BoundRecursivePattern.cs (2)
15
if (
DeclaredType
is null)
28
Debug.Assert(NarrowedType.Equals(
DeclaredType
.Type, TypeCompareKind.AllIgnoreOptions));
FlowAnalysis\AbstractFlowPass.cs (2)
948
DeclaredType
: null,
975
rewritten.
DeclaredType
, rewritten.DeconstructMethod, rewritten.Deconstruction,
FlowAnalysis\NullableWalker_Patterns.cs (1)
56
Visit(node.
DeclaredType
);
Generated\BoundNodes.xml.Generated.cs (5)
8368
if (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))
11001
this.Visit(node.
DeclaredType
);
12553
BoundTypeExpression? declaredType = (BoundTypeExpression?)this.Visit(node.
DeclaredType
);
15247
BoundTypeExpression? declaredType = (BoundTypeExpression?)this.Visit(node.
DeclaredType
);
17492
new TreeDumperNode("declaredType", null, new TreeDumperNode[] { Visit(node.
DeclaredType
, null) }),
Operations\CSharpOperationFactory.cs (1)
2621
ITypeSymbol matchedType = (boundRecursivePattern.
DeclaredType
?.Type ?? boundRecursivePattern.InputType.StrippedType()).GetPublicSymbol();