1 write to DeclaredType
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
8292
this.
DeclaredType
= declaredType;
14 references to DeclaredType
Microsoft.CodeAnalysis.CSharp (14)
Binder\DecisionDagBuilder_CheckOrReachability.cs (2)
1098
return declarationPattern.Update(declarationPattern.
DeclaredType
, declarationPattern.IsVar, isUnionMatching: false,
1122
var result = new BoundDeclarationPattern(node.Syntax, node.
DeclaredType
, node.IsVar, isUnionMatching: false, node.Variable, node.VariableAccess, node.InputType, node.NarrowedType)
Binder\DecisionDagBuilder.cs (1)
592
TypeSymbol? type = declaration.
DeclaredType
?.Type;
Binder\RefSafetyAnalysis.cs (1)
666
using var _ = new PatternInput(this, getDeclarationValEscape(node.
DeclaredType
, _patternInputValEscape));
Binder\UnionMatchingRewriter.cs (1)
147
node.Update(node.
DeclaredType
, node.IsVar, isUnionMatching: false, node.Variable, node.VariableAccess,
BoundTree\BoundDeclarationPattern.cs (2)
13
Debug.Assert(
DeclaredType
is not null);
14
Debug.Assert(NarrowedType.Equals(
DeclaredType
.Type, TypeCompareKind.AllIgnoreOptions));
FlowAnalysis\NullableWalker_Patterns.cs (1)
74
Visit(node.
DeclaredType
);
Generated\BoundNodes.xml.Generated.cs (5)
8310
if (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))
10988
this.Visit(node.
DeclaredType
);
12539
BoundTypeExpression declaredType = (BoundTypeExpression)this.Visit(node.
DeclaredType
);
15237
BoundTypeExpression declaredType = (BoundTypeExpression)this.Visit(node.
DeclaredType
);
17485
new TreeDumperNode("declaredType", null, new TreeDumperNode[] { Visit(node.
DeclaredType
, null) }),
Operations\CSharpOperationFactory.cs (1)
2632
ITypeSymbol? matchedType = acceptsNull ? null : boundDeclarationPattern.
DeclaredType
.GetPublicTypeSymbol();