2 writes to InputType
Microsoft.CodeAnalysis.CSharp (2)
Generated\BoundNodes.xml.Generated.cs (2)
8119
this.
InputType
= inputType;
8134
this.
InputType
= inputType;
170 references to InputType
Microsoft.CodeAnalysis.CSharp (170)
Binder\Binder_Patterns.cs (1)
2378
candidate = pat.
InputType
;
Binder\DecisionDagBuilder_CheckOrReachability.cs (37)
440
var negated = new BoundNegatedPattern(pattern.Syntax, negated: pattern, pattern.
InputType
, narrowedType: pattern.
InputType
);
558
var wrappedPattern = new BoundBinaryPattern(newPattern.Syntax, disjunction: false, current.Left, newPattern, current.
InputType
, newPattern.NarrowedType);
813
stack.Push(new BoundBinaryPattern(operationSyntax, disjunction, left, right, left.
InputType
, narrowedType));
828
inputType = stack.Peek().
InputType
;
855
return resultLeft.
InputType
;
1010
var result = new BoundNegatedPattern(node.Syntax, node, node.
InputType
, narrowedType: node.
InputType
);
1051
if (pattern.
InputType
.Equals(inputType, TypeCompareKind.AllIgnoreOptions))
1065
new BoundTypeExpression(recursivePattern.Syntax, aliasOpt: null, recursivePattern.
InputType
.StrippedType()),
1107
new BoundTypeExpression(pattern.Syntax, aliasOpt: null, pattern.
InputType
),
1108
isExplicitNotNullTest: false, unionMatchingMode: UnionMatchingMode.None, inputType, narrowedType: pattern.
InputType
).MakeCompilerGenerated();
1122
var result = new BoundDeclarationPattern(node.Syntax, node.DeclaredType, node.IsVar, unionMatchingMode: UnionMatchingMode.None, node.Variable, node.VariableAccess, node.
InputType
, node.NarrowedType)
1162
initialCheck = new BoundTypePattern(node.Syntax, node.DeclaredType, node.IsExplicitNotNullTest, unionMatchingMode: UnionMatchingMode.None, node.
InputType
, node.NarrowedType, node.HasErrors);
1164
else if (node.
InputType
.CanContainNull())
1168
new BoundLiteral(node.Syntax, constantValueOpt: ConstantValue.Null, type: node.
InputType
, hasErrors: false),
1169
ConstantValue.Null, unionMatchingMode: UnionMatchingMode.None, node.
InputType
, node.
InputType
, hasErrors: false);
1170
initialCheck = new BoundNegatedPattern(node.Syntax, nullCheck, node.
InputType
, narrowedType: node.
InputType
);
1176
ImmutableArray<BoundPropertySubpattern>.Empty, isExplicitNotNullTest: false, unionMatchingMode: UnionMatchingMode.None, variable: null, variableAccess: null, node.
InputType
, node.
InputType
);
1185
var discards = deconstruction.SelectAsArray(d => d.WithPattern(MakeDiscardPattern(d.Syntax, d.Pattern.
InputType
)));
1195
newPattern = WithInputTypeCheckIfNeeded(newPattern, deconstruction[i].Pattern.
InputType
);
1202
node.
InputType
, node.NarrowedType, node.HasErrors);
1230
newPattern = WithInputTypeCheckIfNeeded(newPattern, property!.Pattern.
InputType
);
1237
node.
InputType
, node.NarrowedType, node.HasErrors);
1298
var discards = subpatterns.SelectAsArray(d => d.WithPattern(MakeDiscardPattern(d.Syntax, d.Pattern.
InputType
)));
1305
ituplePattern.
InputType
, ituplePattern.NarrowedType);
1318
newPattern = WithInputTypeCheckIfNeeded(newPattern, subpatterns[i].Pattern.
InputType
);
1322
ituplePattern.GetItemMethod, newSubpatterns, ituplePattern.
InputType
, ituplePattern.NarrowedType);
1381
newPattern = WithInputTypeCheckIfNeeded(newPattern, equivalentDefaultPatterns[i].
InputType
);
1387
listPattern.
InputType
, listPattern.NarrowedType);
1408
newPattern = WithInputTypeCheckIfNeeded(newPattern, slice.Pattern.
InputType
);
1411
slice.ReceiverPlaceholder, slice.ArgumentPlaceholder, slice.
InputType
, slice.NarrowedType);
1418
listPattern.
InputType
, listPattern.NarrowedType);
1467
return MakeDiscardPattern(pattern.Syntax, pattern.
InputType
);
Binder\DecisionDagBuilder_ListPatterns.cs (4)
18
Debug.Assert(inputType.IsErrorType() || list.HasErrors || list.
InputType
.IsErrorType() ||
19
inputType.Equals(list.
InputType
, TypeCompareKind.AllIgnoreOptions) &&
68
var sliceEvaluation = new BoundDagSliceEvaluation(slicePattern.Syntax, slicePattern.
InputType
, lengthTemp, startIndex: startIndex, endIndex: index,
83
var indexEvaluation = new BoundDagIndexerEvaluation(subpattern.Syntax, subpattern.
InputType
, lengthTemp, index++,
Binder\DecisionDagBuilder.cs (6)
374
(pattern.HasErrors || pattern.
InputType
.Equals(input.DagTemp.Type, TypeCompareKind.AllIgnoreOptions) || pattern.
InputType
.IsErrorType()) :
375
(pattern.
InputType
.SpecialType == SpecialType.System_Object));
939
RoslynDebug.Assert(inputTempType.IsErrorType() || recursive.HasErrors || recursive.
InputType
.IsErrorType() || inputTempType.Equals(recursive.
InputType
, TypeCompareKind.AllIgnoreOptions));
1148
if (bin.
InputType
.Equals(bin.NarrowedType))
Binder\UnionMatchingRewriter.cs (33)
63
Debug.Assert(exclusiveValuePattern.
InputType
.IsObjectType());
67
var member = new BoundPropertySubpatternMember(exclusiveValuePattern.Syntax, receiver: null, valueProperty, type: exclusiveValuePattern.
InputType
, hasErrors: valueProperty is null).MakeCompilerGenerated();
84
Debug.Assert(node.
InputType
.IsSubjectForUnionMatching);
89
Debug.Assert(Binder.IsClassOrNullableValueTypeUnionNullPatternMatching((NamedTypeSymbol)node.
InputType
, node.ConstantValue));
90
Debug.Assert(node.NarrowedType.Equals(node.
InputType
, TypeCompareKind.AllIgnoreOptions));
95
(NamedTypeSymbol)node.
InputType
,
100
left: node.Update(node.Value, node.ConstantValue, unionMatchingMode: UnionMatchingMode.None, node.
InputType
, node.
InputType
).MakeCompilerGenerated(),
102
inputType: node.
InputType
,
103
narrowedType: node.
InputType
)
108
(NamedTypeSymbol)node.
InputType
,
121
(NamedTypeSymbol)node.
InputType
,
124
unionMatchingMode: UnionMatchingMode.None, node.Variable, node.VariableAccess, inputType: node.
InputType
, narrowedType: node.NarrowedType),
142
TypeSymbol? inputType = node.
InputType
;
155
(NamedTypeSymbol)node.
InputType
,
158
inputType: node.
InputType
, narrowedType: node.NarrowedType),
174
(NamedTypeSymbol)node.
InputType
,
176
node.Update(node.DeclaredType, node.IsExplicitNotNullTest, unionMatchingMode: UnionMatchingMode.None, inputType: node.
InputType
, narrowedType: node.NarrowedType),
190
(NamedTypeSymbol)node.
InputType
,
201
return node.Update(negated, node.
InputType
, node.NarrowedType);
210
TypeSymbol? inputType = node.
InputType
;
300
Debug.Assert(node.NarrowedType.Equals(leastSpecific ?? node.
InputType
, TypeCompareKind.ConsiderEverything));
303
return node.Update(disjunction: true, preboundLeft, right, inputType: node.
InputType
, narrowedType: node.NarrowedType);
366
inputType: left.
InputType
).MakeCompilerGenerated();
389
inputType: leftUnionPattern.
InputType
).MakeCompilerGenerated();
434
return new BoundBinaryPattern(node, disjunction: false, left, right, inputType: left.
InputType
, narrowedType: right.NarrowedType) { WasCompilerGenerated = makeCompilerGenerated };
488
toNegate = makeTypePattern(typePattern.DeclaredType, typePattern.
InputType
);
491
toNegate = makeTypePattern(declarationPattern.DeclaredType, declarationPattern.
InputType
);
494
toNegate = makeTypePattern(declaredType, recursivePattern.
InputType
);
502
new BoundNegatedPattern(toNegate.Syntax, toNegate, toNegate.
InputType
, toNegate.
InputType
).MakeCompilerGenerated(),
530
Debug.Assert(result.
InputType
.Equals(pattern.
InputType
, TypeCompareKind.AllIgnoreOptions));
BoundTree\BoundBinaryPattern.cs (5)
13
Debug.Assert(Left.
InputType
.Equals(
InputType
, TypeCompareKind.AllIgnoreOptions));
19
Debug.Assert(Right.
InputType
.Equals(
InputType
, TypeCompareKind.AllIgnoreOptions));
25
Debug.Assert(Right.
InputType
.Equals(Left.NarrowedType, TypeCompareKind.AllIgnoreOptions));
BoundTree\BoundConstantPattern.cs (4)
18
(ConstantValue == ConstantValue.Null && (
InputType
.IsNullableType() || !
InputType
.IsValueType) && NarrowedType.Equals(
InputType
, TypeCompareKind.AllIgnoreOptions)));
22
Debug.Assert(NarrowedType.Equals(
InputType
, TypeCompareKind.AllIgnoreOptions) ||
BoundTree\BoundDiscardPattern.cs (1)
13
Debug.Assert(NarrowedType.Equals(
InputType
, TypeCompareKind.AllIgnoreOptions));
BoundTree\BoundListPattern.cs (2)
16
return Update(subpatterns, this.HasSlice, this.LengthAccess, this.IndexerAccess, this.ReceiverPlaceholder, this.ArgumentPlaceholder, this.Variable, this.VariableAccess, this.
InputType
, this.NarrowedType);
26
Debug.Assert(NarrowedType.Equals(
InputType
.StrippedType(), TypeCompareKind.AllIgnoreOptions));
BoundTree\BoundNegatedPattern.cs (3)
14
Debug.Assert(NarrowedType.Equals(
InputType
, TypeCompareKind.AllIgnoreOptions));
15
Debug.Assert(Negated.
InputType
.Equals(
InputType
, TypeCompareKind.AllIgnoreOptions));
BoundTree\BoundPattern.cs (1)
36
Debug.Assert(UnionMatchingMode == UnionMatchingMode.None ||
InputType
is { IsSubjectForUnionMatching: true });
BoundTree\BoundPatternWithUnionMatching.cs (4)
15
Debug.Assert(
InputType
.Equals(LeftOfPendingConjunction?.
InputType
?? UnionMatchingInputType, TypeCompareKind.AllIgnoreOptions));
16
Debug.Assert(UnionMatchingInputType == (object)(LeftOfPendingConjunction?.NarrowedType ??
InputType
));
39
Debug.Assert(ExclusiveInstancePattern.
InputType
== (object)UnionMatchingInputType);
BoundTree\BoundRecursivePattern.cs (1)
18
Debug.Assert(NarrowedType.Equals(
InputType
.StrippedType(), TypeCompareKind.AllIgnoreOptions));
BoundTree\BoundRelationalPattern.cs (1)
22
Debug.Assert(NarrowedType.Equals(
InputType
, TypeCompareKind.AllIgnoreOptions) ||
BoundTree\BoundSlicePattern.cs (2)
13
return Update(pattern, this.IndexerAccess, this.ReceiverPlaceholder, this.ArgumentPlaceholder, this.
InputType
, this.NarrowedType);
21
Debug.Assert(NarrowedType.Equals(
InputType
, TypeCompareKind.AllIgnoreOptions));
BoundTree\BoundTreeRewriter.cs (1)
375
left = binary.Update(binary.Disjunction, left, right, VisitType(binary.
InputType
), VisitType(binary.NarrowedType));
BoundTree\NullabilityRewriter.cs (1)
159
TypeSymbol inputType = GetUpdatedSymbol(currentBinary, currentBinary.
InputType
);
Compilation\CSharpSemanticModel.cs (2)
2040
pattern.
InputType
, pattern.NarrowedType, nullability: default, convertedNullability: default,
2041
Compilation.Conversions.ClassifyBuiltInConversion(pattern.
InputType
, pattern.NarrowedType, isChecked: false, ref discardedUseSiteInfo));
Generated\BoundNodes.xml.Generated.cs (47)
8171
if (value != this.Value || constantValue != this.ConstantValue || unionMatchingMode != this.UnionMatchingMode || !TypeSymbol.Equals(inputType, this.
InputType
, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything))
8217
if (!TypeSymbol.Equals(unionMatchingInputType, this.UnionMatchingInputType, TypeCompareKind.ConsiderEverything) || leftOfPendingConjunction != this.LeftOfPendingConjunction || exclusiveInstancePattern != this.ExclusiveInstancePattern || valueProperty != this.ValueProperty || exclusiveValuePattern != this.ExclusiveValuePattern || sharedRightOfPendingConjunction != this.SharedRightOfPendingConjunction || !TypeSymbol.Equals(inputType, this.
InputType
, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything))
8257
if (!TypeSymbol.Equals(inputType, this.
InputType
, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything))
8312
if (declaredType != this.DeclaredType || isVar != this.IsVar || unionMatchingMode != this.UnionMatchingMode || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(variable, this.Variable) || variableAccess != this.VariableAccess || !TypeSymbol.Equals(inputType, this.
InputType
, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything))
8355
if (declaredType != this.DeclaredType || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(deconstructMethod, this.DeconstructMethod) || deconstruction != this.Deconstruction || properties != this.Properties || isExplicitNotNullTest != this.IsExplicitNotNullTest || unionMatchingMode != this.UnionMatchingMode || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(variable, this.Variable) || variableAccess != this.VariableAccess || !TypeSymbol.Equals(inputType, this.
InputType
, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything))
8399
if (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))
8438
if (pattern != this.Pattern || indexerAccess != this.IndexerAccess || receiverPlaceholder != this.ReceiverPlaceholder || argumentPlaceholder != this.ArgumentPlaceholder || !TypeSymbol.Equals(inputType, this.
InputType
, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything))
8478
if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(getLengthMethod, this.GetLengthMethod) || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(getItemMethod, this.GetItemMethod) || subpatterns != this.Subpatterns || !TypeSymbol.Equals(inputType, this.
InputType
, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything))
8624
if (declaredType != this.DeclaredType || isExplicitNotNullTest != this.IsExplicitNotNullTest || unionMatchingMode != this.UnionMatchingMode || !TypeSymbol.Equals(inputType, this.
InputType
, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything))
8663
if (disjunction != this.Disjunction || left != this.Left || right != this.Right || !TypeSymbol.Equals(inputType, this.
InputType
, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything))
8697
if (negated != this.Negated || !TypeSymbol.Equals(inputType, this.
InputType
, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything))
8738
if (relation != this.Relation || value != this.Value || constantValue != this.ConstantValue || unionMatchingMode != this.UnionMatchingMode || !TypeSymbol.Equals(inputType, this.
InputType
, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything))
12520
TypeSymbol? inputType = this.VisitType(node.
InputType
);
12532
TypeSymbol? inputType = this.VisitType(node.
InputType
);
12538
TypeSymbol? inputType = this.VisitType(node.
InputType
);
12547
TypeSymbol? inputType = this.VisitType(node.
InputType
);
12559
TypeSymbol? inputType = this.VisitType(node.
InputType
);
12572
TypeSymbol? inputType = this.VisitType(node.
InputType
);
12582
TypeSymbol? inputType = this.VisitType(node.
InputType
);
12591
TypeSymbol? inputType = this.VisitType(node.
InputType
);
12617
TypeSymbol? inputType = this.VisitType(node.
InputType
);
12625
TypeSymbol? inputType = this.VisitType(node.
InputType
);
12632
TypeSymbol? inputType = this.VisitType(node.
InputType
);
12639
TypeSymbol? inputType = this.VisitType(node.
InputType
);
15214
TypeSymbol inputType = GetUpdatedSymbol(node, node.
InputType
);
15223
TypeSymbol inputType = GetUpdatedSymbol(node, node.
InputType
);
15235
TypeSymbol inputType = GetUpdatedSymbol(node, node.
InputType
);
15243
TypeSymbol inputType = GetUpdatedSymbol(node, node.
InputType
);
15254
TypeSymbol inputType = GetUpdatedSymbol(node, node.
InputType
);
15266
TypeSymbol inputType = GetUpdatedSymbol(node, node.
InputType
);
15279
TypeSymbol inputType = GetUpdatedSymbol(node, node.
InputType
);
15292
TypeSymbol inputType = GetUpdatedSymbol(node, node.
InputType
);
15314
TypeSymbol inputType = GetUpdatedSymbol(node, node.
InputType
);
15322
TypeSymbol inputType = GetUpdatedSymbol(node, node.
InputType
);
15330
TypeSymbol inputType = GetUpdatedSymbol(node, node.
InputType
);
17467
new TreeDumperNode("inputType", node.
InputType
, null),
17480
new TreeDumperNode("inputType", node.
InputType
, null),
17487
new TreeDumperNode("inputType", node.
InputType
, null),
17499
new TreeDumperNode("inputType", node.
InputType
, null),
17514
new TreeDumperNode("inputType", node.
InputType
, null),
17529
new TreeDumperNode("inputType", node.
InputType
, null),
17540
new TreeDumperNode("inputType", node.
InputType
, null),
17550
new TreeDumperNode("inputType", node.
InputType
, null),
17583
new TreeDumperNode("inputType", node.
InputType
, null),
17593
new TreeDumperNode("inputType", node.
InputType
, null),
17601
new TreeDumperNode("inputType", node.
InputType
, null),
17612
new TreeDumperNode("inputType", node.
InputType
, null),
Operations\CSharpOperationFactory.cs (14)
2586
TypeSymbol inputType = boundConstantPattern.
InputType
;
2597
TypeSymbol inputType = boundRelationalPattern.
InputType
;
2610
ITypeSymbol inputType = boundDeclarationPattern.
InputType
.GetPublicSymbol();
2621
ITypeSymbol matchedType = (boundRecursivePattern.DeclaredType?.Type ?? boundRecursivePattern.
InputType
.StrippedType()).GetPublicSymbol();
2634
boundRecursivePattern.
InputType
.GetPublicSymbol(),
2648
boundITuplePattern.
InputType
.StrippedType().GetPublicSymbol(),
2653
boundITuplePattern.
InputType
.GetPublicSymbol(),
2664
inputType: boundTypePattern.
InputType
.GetPublicSymbol(),
2677
inputType: boundNode.
InputType
.GetPublicSymbol(),
2691
inputType: boundNode.
InputType
.GetPublicSymbol(),
2702
boundNegatedPattern.
InputType
.GetPublicSymbol(),
2742
boundBinaryPattern.
InputType
.GetPublicSymbol(),
2825
cp.
InputType
.IsValidV6SwitchGoverningType())
2911
inputType: boundNode.
InputType
.GetPublicSymbol(),