2 writes to InputType
Microsoft.CodeAnalysis.CSharp (2)
Generated\BoundNodes.xml.Generated.cs (2)
8121
this.
InputType
= inputType;
8136
this.
InputType
= inputType;
158 references to InputType
Microsoft.CodeAnalysis.CSharp (158)
Binder\Binder_Patterns.cs (1)
2272
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, isUnionMatching: false, inputType, narrowedType: pattern.
InputType
).MakeCompilerGenerated();
1122
var result = new BoundDeclarationPattern(node.Syntax, node.DeclaredType, node.IsVar, isUnionMatching: false, node.Variable, node.VariableAccess, node.
InputType
, node.NarrowedType)
1162
initialCheck = new BoundTypePattern(node.Syntax, node.DeclaredType, node.IsExplicitNotNullTest, isUnionMatching: false, 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, isUnionMatching: false, 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 (2)
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)
375
(pattern.HasErrors || pattern.
InputType
.Equals(input.DagTemp.Type, TypeCompareKind.AllIgnoreOptions) || pattern.
InputType
.IsErrorType()) :
376
(pattern.
InputType
.SpecialType == SpecialType.System_Object));
940
RoslynDebug.Assert(inputTempType.IsErrorType() || recursive.HasErrors || recursive.
InputType
.IsErrorType() || inputTempType.Equals(recursive.
InputType
, TypeCompareKind.AllIgnoreOptions));
1149
if (bin.
InputType
.Equals(bin.NarrowedType))
Binder\UnionMatchingRewriter.cs (24)
58
Debug.Assert(innerPattern.
InputType
.IsObjectType());
62
var member = new BoundPropertySubpatternMember(innerPattern.Syntax, receiver: null, valueProperty, type: innerPattern.
InputType
, hasErrors: valueProperty is null).MakeCompilerGenerated();
78
Debug.Assert(node.
InputType
.IsSubjectForUnionMatching);
83
Debug.Assert(Binder.IsClassOrNullableValueTypeUnionNullPatternMatching((NamedTypeSymbol)node.
InputType
, node.ConstantValue));
84
Debug.Assert(node.NarrowedType.Equals(node.
InputType
, TypeCompareKind.AllIgnoreOptions));
89
(NamedTypeSymbol)node.
InputType
,
94
left: node.Update(node.Value, node.ConstantValue, unionMatchingMode: UnionMatchingMode.None, node.
InputType
, node.
InputType
).MakeCompilerGenerated(),
96
inputType: node.
InputType
,
97
narrowedType: node.
InputType
)
102
(NamedTypeSymbol)node.
InputType
,
115
(NamedTypeSymbol)node.
InputType
,
133
TypeSymbol? inputType = node.
InputType
;
146
(NamedTypeSymbol)node.
InputType
,
160
(NamedTypeSymbol)node.
InputType
,
173
(NamedTypeSymbol)node.
InputType
,
184
return node.Update(negated, node.
InputType
, node.NarrowedType);
193
TypeSymbol? inputType = node.
InputType
;
286
return node.Update(disjunction: true, preboundLeft, right, inputType: node.
InputType
, narrowedType: node.NarrowedType);
345
inputType: left.
InputType
).MakeCompilerGenerated();
366
inputType: leftUnionPattern.
InputType
).MakeCompilerGenerated();
399
return new BoundBinaryPattern(node, disjunction: false, left, right, inputType: left.
InputType
, narrowedType: right.NarrowedType) { WasCompilerGenerated = makeCompilerGenerated };
451
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)
20
(ConstantValue == ConstantValue.Null && (
InputType
.IsNullableType() || !
InputType
.IsValueType) && NarrowedType.Equals(
InputType
, TypeCompareKind.AllIgnoreOptions)));
24
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)
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)
18
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)
8173
if (value != this.Value || constantValue != this.ConstantValue || unionMatchingMode != this.UnionMatchingMode || !TypeSymbol.Equals(inputType, this.
InputType
, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything))
8215
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))
8255
if (!TypeSymbol.Equals(inputType, this.
InputType
, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything))
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))
8353
if (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))
8397
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))
8436
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))
8476
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))
8622
if (declaredType != this.DeclaredType || isExplicitNotNullTest != this.IsExplicitNotNullTest || isUnionMatching != this.IsUnionMatching || !TypeSymbol.Equals(inputType, this.
InputType
, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything))
8661
if (disjunction != this.Disjunction || left != this.Left || right != this.Right || !TypeSymbol.Equals(inputType, this.
InputType
, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything))
8695
if (negated != this.Negated || !TypeSymbol.Equals(inputType, this.
InputType
, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything))
8736
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))
12516
TypeSymbol? inputType = this.VisitType(node.
InputType
);
12526
TypeSymbol? inputType = this.VisitType(node.
InputType
);
12532
TypeSymbol? inputType = this.VisitType(node.
InputType
);
12541
TypeSymbol? inputType = this.VisitType(node.
InputType
);
12553
TypeSymbol? inputType = this.VisitType(node.
InputType
);
12566
TypeSymbol? inputType = this.VisitType(node.
InputType
);
12576
TypeSymbol? inputType = this.VisitType(node.
InputType
);
12585
TypeSymbol? inputType = this.VisitType(node.
InputType
);
12611
TypeSymbol? inputType = this.VisitType(node.
InputType
);
12619
TypeSymbol? inputType = this.VisitType(node.
InputType
);
12626
TypeSymbol? inputType = this.VisitType(node.
InputType
);
12633
TypeSymbol? inputType = this.VisitType(node.
InputType
);
15208
TypeSymbol inputType = GetUpdatedSymbol(node, node.
InputType
);
15217
TypeSymbol inputType = GetUpdatedSymbol(node, node.
InputType
);
15227
TypeSymbol inputType = GetUpdatedSymbol(node, node.
InputType
);
15235
TypeSymbol inputType = GetUpdatedSymbol(node, node.
InputType
);
15246
TypeSymbol inputType = GetUpdatedSymbol(node, node.
InputType
);
15258
TypeSymbol inputType = GetUpdatedSymbol(node, node.
InputType
);
15271
TypeSymbol inputType = GetUpdatedSymbol(node, node.
InputType
);
15284
TypeSymbol inputType = GetUpdatedSymbol(node, node.
InputType
);
15306
TypeSymbol inputType = GetUpdatedSymbol(node, node.
InputType
);
15314
TypeSymbol inputType = GetUpdatedSymbol(node, node.
InputType
);
15322
TypeSymbol inputType = GetUpdatedSymbol(node, node.
InputType
);
17460
new TreeDumperNode("inputType", node.
InputType
, null),
17471
new TreeDumperNode("inputType", node.
InputType
, null),
17478
new TreeDumperNode("inputType", node.
InputType
, null),
17490
new TreeDumperNode("inputType", node.
InputType
, null),
17505
new TreeDumperNode("inputType", node.
InputType
, null),
17520
new TreeDumperNode("inputType", node.
InputType
, null),
17531
new TreeDumperNode("inputType", node.
InputType
, null),
17541
new TreeDumperNode("inputType", node.
InputType
, null),
17574
new TreeDumperNode("inputType", node.
InputType
, null),
17584
new TreeDumperNode("inputType", node.
InputType
, null),
17592
new TreeDumperNode("inputType", node.
InputType
, null),
17603
new TreeDumperNode("inputType", node.
InputType
, null),
Operations\CSharpOperationFactory.cs (14)
2605
TypeSymbol inputType = boundConstantPattern.
InputType
;
2616
TypeSymbol inputType = boundRelationalPattern.
InputType
;
2629
ITypeSymbol inputType = boundDeclarationPattern.
InputType
.GetPublicSymbol();
2640
ITypeSymbol matchedType = (boundRecursivePattern.DeclaredType?.Type ?? boundRecursivePattern.
InputType
.StrippedType()).GetPublicSymbol();
2653
boundRecursivePattern.
InputType
.GetPublicSymbol(),
2667
boundITuplePattern.
InputType
.StrippedType().GetPublicSymbol(),
2672
boundITuplePattern.
InputType
.GetPublicSymbol(),
2683
inputType: boundTypePattern.
InputType
.GetPublicSymbol(),
2696
inputType: boundNode.
InputType
.GetPublicSymbol(),
2710
inputType: boundNode.
InputType
.GetPublicSymbol(),
2721
boundNegatedPattern.
InputType
.GetPublicSymbol(),
2761
boundBinaryPattern.
InputType
.GetPublicSymbol(),
2844
cp.
InputType
.IsValidV6SwitchGoverningType())
2930
inputType: boundNode.
InputType
.GetPublicSymbol(),