2 writes to InputType
Microsoft.CodeAnalysis.CSharp (2)
Generated\BoundNodes.xml.Generated.cs (2)
8138
this.
InputType
= inputType;
8153
this.
InputType
= inputType;
163 references to InputType
Microsoft.CodeAnalysis.CSharp (163)
Binder\Binder_Patterns.cs (1)
2618
candidate = pat.
InputType
;
Binder\DecisionDagBuilder.cs (6)
366
(pattern.HasErrors || pattern.
InputType
.Equals(input.DagTemp.Type, TypeCompareKind.AllIgnoreOptions) || pattern.
InputType
.IsErrorType()) :
367
(pattern.
InputType
.SpecialType == SpecialType.System_Object));
931
RoslynDebug.Assert(inputTempType.IsErrorType() || recursive.HasErrors || recursive.
InputType
.IsErrorType() || inputTempType.Equals(recursive.
InputType
, TypeCompareKind.AllIgnoreOptions));
1140
if (bin.
InputType
.Equals(bin.NarrowedType))
Binder\DecisionDagBuilder_CheckOrReachability.cs (37)
370
var negated = new BoundNegatedPattern(pattern.Syntax, negated: pattern, pattern.
InputType
, narrowedType: pattern.
InputType
);
488
var wrappedPattern = new BoundBinaryPattern(newPattern.Syntax, disjunction: false, current.Left, newPattern, current.
InputType
, newPattern.NarrowedType);
743
stack.Push(new BoundBinaryPattern(operationSyntax, disjunction, left, right, left.
InputType
, narrowedType));
758
inputType = stack.Peek().
InputType
;
785
return resultLeft.
InputType
;
940
var result = new BoundNegatedPattern(node.Syntax, node, node.
InputType
, narrowedType: node.
InputType
);
981
if (pattern.
InputType
.Equals(inputType, TypeCompareKind.AllIgnoreOptions))
995
new BoundTypeExpression(recursivePattern.Syntax, aliasOpt: null, recursivePattern.
InputType
.StrippedType()),
1037
new BoundTypeExpression(pattern.Syntax, aliasOpt: null, pattern.
InputType
),
1038
isExplicitNotNullTest: false, isUnionMatching: false, inputType, narrowedType: pattern.
InputType
).MakeCompilerGenerated();
1052
var result = new BoundDeclarationPattern(node.Syntax, node.DeclaredType, node.IsVar, node.Variable, node.VariableAccess, isUnionMatching: false, node.
InputType
, node.NarrowedType)
1092
initialCheck = new BoundTypePattern(node.Syntax, node.DeclaredType, node.IsExplicitNotNullTest, isUnionMatching: false, node.
InputType
, node.NarrowedType, node.HasErrors);
1094
else if (node.
InputType
.CanContainNull())
1098
new BoundLiteral(node.Syntax, constantValueOpt: ConstantValue.Null, type: node.
InputType
, hasErrors: false),
1099
ConstantValue.Null, isUnionMatching: false, node.
InputType
, node.
InputType
, hasErrors: false);
1100
initialCheck = new BoundNegatedPattern(node.Syntax, nullCheck, node.
InputType
, narrowedType: node.
InputType
);
1106
ImmutableArray<BoundPropertySubpattern>.Empty, isExplicitNotNullTest: false, variable: null, variableAccess: null, isUnionMatching: false, node.
InputType
, node.
InputType
);
1115
var discards = deconstruction.SelectAsArray(d => d.WithPattern(MakeDiscardPattern(d.Syntax, d.Pattern.
InputType
)));
1125
newPattern = WithInputTypeCheckIfNeeded(newPattern, deconstruction[i].Pattern.
InputType
);
1132
isUnionMatching: false, node.
InputType
, node.NarrowedType, node.HasErrors);
1160
newPattern = WithInputTypeCheckIfNeeded(newPattern, property!.Pattern.
InputType
);
1167
isUnionMatching: false, node.
InputType
, node.NarrowedType, node.HasErrors);
1228
var discards = subpatterns.SelectAsArray(d => d.WithPattern(MakeDiscardPattern(d.Syntax, d.Pattern.
InputType
)));
1235
isUnionMatching: false, ituplePattern.
InputType
, ituplePattern.NarrowedType);
1248
newPattern = WithInputTypeCheckIfNeeded(newPattern, subpatterns[i].Pattern.
InputType
);
1252
ituplePattern.GetItemMethod, newSubpatterns, isUnionMatching: false, ituplePattern.
InputType
, ituplePattern.NarrowedType);
1311
newPattern = WithInputTypeCheckIfNeeded(newPattern, equivalentDefaultPatterns[i].
InputType
);
1317
isUnionMatching: false, listPattern.
InputType
, listPattern.NarrowedType);
1338
newPattern = WithInputTypeCheckIfNeeded(newPattern, slice.Pattern.
InputType
);
1341
slice.ReceiverPlaceholder, slice.ArgumentPlaceholder, slice.
InputType
, slice.NarrowedType);
1348
isUnionMatching: false, listPattern.
InputType
, listPattern.NarrowedType);
1397
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\UnionMatchingRewriter.cs (27)
58
Debug.Assert(innerPattern.
InputType
.IsObjectType());
62
var member = new BoundPropertySubpatternMember(innerPattern.Syntax, receiver: null, valueProperty, type: innerPattern.
InputType
, hasErrors: valueProperty is null).MakeCompilerGenerated();
77
Debug.Assert(node.
InputType
.IsSubjectForUnionMatching);
79
if (Binder.IsClassOrNullableValueTypeUnionNullPatternMatching((NamedTypeSymbol)node.
InputType
, node.ConstantValue) && node.NarrowedType.Equals(node.
InputType
, TypeCompareKind.AllIgnoreOptions))
84
(NamedTypeSymbol)node.
InputType
,
89
left: node.Update(node.Value, node.ConstantValue, isUnionMatching: false, node.
InputType
, node.
InputType
).MakeCompilerGenerated(),
91
inputType: node.
InputType
,
92
narrowedType: node.
InputType
)
97
(NamedTypeSymbol)node.
InputType
,
110
(NamedTypeSymbol)node.
InputType
,
128
TypeSymbol? inputType = node.
InputType
;
134
(NamedTypeSymbol)node.
InputType
,
148
(NamedTypeSymbol)node.
InputType
,
162
(NamedTypeSymbol)node.
InputType
,
176
(NamedTypeSymbol)node.
InputType
,
189
(NamedTypeSymbol)node.
InputType
,
200
return node.Update(negated, node.
InputType
, node.NarrowedType);
209
TypeSymbol? inputType = node.
InputType
;
299
Debug.Assert(node.NarrowedType.Equals(leastSpecific ?? node.
InputType
, TypeCompareKind.ConsiderEverything));
302
return node.Update(disjunction: true, preboundLeft, right, inputType: node.
InputType
, narrowedType: node.NarrowedType);
361
inputType: left.
InputType
).MakeCompilerGenerated();
382
inputType: leftUnionPattern.
InputType
).MakeCompilerGenerated();
415
return new BoundBinaryPattern(node, disjunction: false, left, right, inputType: left.
InputType
, narrowedType: right.NarrowedType) { WasCompilerGenerated = makeCompilerGenerated };
484
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.IsUnionMatching, this.
InputType
, this.NarrowedType);
32
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)
35
Debug.Assert(!IsUnionMatching ||
InputType
is { IsSubjectForUnionMatching: true });
BoundTree\BoundPatternWithUnionMatching.cs (3)
15
Debug.Assert(
InputType
.Equals(LeftOfPendingConjunction?.
InputType
?? UnionMatchingInputType, TypeCompareKind.AllIgnoreOptions));
16
Debug.Assert(UnionMatchingInputType == (object)(LeftOfPendingConjunction?.NarrowedType ??
InputType
));
BoundTree\BoundRecursivePattern.cs (1)
23
Debug.Assert(NarrowedType.Equals(
InputType
.StrippedType(), TypeCompareKind.AllIgnoreOptions));
BoundTree\BoundRelationalPattern.cs (1)
21
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)
8190
if (value != this.Value || constantValue != this.ConstantValue || isUnionMatching != this.IsUnionMatching || !TypeSymbol.Equals(inputType, this.
InputType
, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything))
8232
if (!TypeSymbol.Equals(unionMatchingInputType, this.UnionMatchingInputType, TypeCompareKind.ConsiderEverything) || leftOfPendingConjunction != this.LeftOfPendingConjunction || valueProperty != this.ValueProperty || valuePattern != this.ValuePattern || !TypeSymbol.Equals(inputType, this.
InputType
, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything))
8272
if (!TypeSymbol.Equals(inputType, this.
InputType
, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything))
8327
if (declaredType != this.DeclaredType || isVar != this.IsVar || !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))
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))
8412
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 || isUnionMatching != this.IsUnionMatching || !TypeSymbol.Equals(inputType, this.
InputType
, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything))
8451
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))
8493
if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(getLengthMethod, this.GetLengthMethod) || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(getItemMethod, this.GetItemMethod) || subpatterns != this.Subpatterns || isUnionMatching != this.IsUnionMatching || !TypeSymbol.Equals(inputType, this.
InputType
, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything))
8639
if (declaredType != this.DeclaredType || isExplicitNotNullTest != this.IsExplicitNotNullTest || isUnionMatching != this.IsUnionMatching || !TypeSymbol.Equals(inputType, this.
InputType
, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything))
8678
if (disjunction != this.Disjunction || left != this.Left || right != this.Right || !TypeSymbol.Equals(inputType, this.
InputType
, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything))
8712
if (negated != this.Negated || !TypeSymbol.Equals(inputType, this.
InputType
, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything))
8753
if (relation != this.Relation || value != this.Value || constantValue != this.ConstantValue || isUnionMatching != this.IsUnionMatching || !TypeSymbol.Equals(inputType, this.
InputType
, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything))
12518
TypeSymbol? inputType = this.VisitType(node.
InputType
);
12528
TypeSymbol? inputType = this.VisitType(node.
InputType
);
12534
TypeSymbol? inputType = this.VisitType(node.
InputType
);
12543
TypeSymbol? inputType = this.VisitType(node.
InputType
);
12555
TypeSymbol? inputType = this.VisitType(node.
InputType
);
12568
TypeSymbol? inputType = this.VisitType(node.
InputType
);
12578
TypeSymbol? inputType = this.VisitType(node.
InputType
);
12587
TypeSymbol? inputType = this.VisitType(node.
InputType
);
12613
TypeSymbol? inputType = this.VisitType(node.
InputType
);
12621
TypeSymbol? inputType = this.VisitType(node.
InputType
);
12628
TypeSymbol? inputType = this.VisitType(node.
InputType
);
12635
TypeSymbol? inputType = this.VisitType(node.
InputType
);
15205
TypeSymbol inputType = GetUpdatedSymbol(node, node.
InputType
);
15214
TypeSymbol inputType = GetUpdatedSymbol(node, node.
InputType
);
15224
TypeSymbol inputType = GetUpdatedSymbol(node, node.
InputType
);
15232
TypeSymbol inputType = GetUpdatedSymbol(node, node.
InputType
);
15243
TypeSymbol inputType = GetUpdatedSymbol(node, node.
InputType
);
15255
TypeSymbol inputType = GetUpdatedSymbol(node, node.
InputType
);
15268
TypeSymbol inputType = GetUpdatedSymbol(node, node.
InputType
);
15281
TypeSymbol inputType = GetUpdatedSymbol(node, node.
InputType
);
15303
TypeSymbol inputType = GetUpdatedSymbol(node, node.
InputType
);
15311
TypeSymbol inputType = GetUpdatedSymbol(node, node.
InputType
);
15319
TypeSymbol inputType = GetUpdatedSymbol(node, node.
InputType
);
17453
new TreeDumperNode("inputType", node.
InputType
, null),
17464
new TreeDumperNode("inputType", node.
InputType
, null),
17471
new TreeDumperNode("inputType", node.
InputType
, null),
17483
new TreeDumperNode("inputType", node.
InputType
, null),
17498
new TreeDumperNode("inputType", node.
InputType
, null),
17514
new TreeDumperNode("inputType", node.
InputType
, null),
17525
new TreeDumperNode("inputType", node.
InputType
, null),
17536
new TreeDumperNode("inputType", node.
InputType
, null),
17569
new TreeDumperNode("inputType", node.
InputType
, null),
17579
new TreeDumperNode("inputType", node.
InputType
, null),
17587
new TreeDumperNode("inputType", node.
InputType
, null),
17598
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(),