2 writes to InputType
Microsoft.CodeAnalysis.CSharp (2)
Generated\BoundNodes.xml.Generated.cs (2)
8006
this.
InputType
= inputType;
8017
this.
InputType
= inputType;
125 references to InputType
Microsoft.CodeAnalysis.CSharp (125)
Binder\DecisionDagBuilder.cs (5)
333
Debug.Assert(pattern.HasErrors || pattern.
InputType
.Equals(input.Type, TypeCompareKind.AllIgnoreOptions) || pattern.
InputType
.IsErrorType());
568
RoslynDebug.Assert(input.Type.IsErrorType() || recursive.HasErrors || recursive.
InputType
.IsErrorType() || input.Type.Equals(recursive.
InputType
, TypeCompareKind.AllIgnoreOptions));
725
if (bin.
InputType
.Equals(bin.NarrowedType))
Binder\DecisionDagBuilder_CheckOrReachability.cs (37)
362
var negated = new BoundNegatedPattern(pattern.Syntax, negated: pattern, pattern.
InputType
, narrowedType: pattern.
InputType
);
480
var wrappedPattern = new BoundBinaryPattern(newPattern.Syntax, disjunction: false, current.Left, newPattern, current.
InputType
, newPattern.NarrowedType);
735
stack.Push(new BoundBinaryPattern(operationSyntax, disjunction, left, right, left.
InputType
, narrowedType));
750
inputType = stack.Peek().
InputType
;
777
return resultLeft.
InputType
;
931
var result = new BoundNegatedPattern(node.Syntax, node, node.
InputType
, narrowedType: node.
InputType
);
972
if (pattern.
InputType
.Equals(inputType, TypeCompareKind.AllIgnoreOptions))
986
new BoundTypeExpression(recursivePattern.Syntax, aliasOpt: null, recursivePattern.
InputType
.StrippedType()),
1028
new BoundTypeExpression(pattern.Syntax, aliasOpt: null, pattern.
InputType
),
1029
isExplicitNotNullTest: false, inputType, narrowedType: pattern.
InputType
).MakeCompilerGenerated();
1043
var result = new BoundDeclarationPattern(node.Syntax, node.DeclaredType, node.IsVar, node.Variable, node.VariableAccess, node.
InputType
, node.NarrowedType)
1083
initialCheck = new BoundTypePattern(node.Syntax, node.DeclaredType, node.IsExplicitNotNullTest, node.
InputType
, node.NarrowedType, node.HasErrors);
1085
else if (node.
InputType
.CanContainNull())
1089
new BoundLiteral(node.Syntax, constantValueOpt: ConstantValue.Null, type: node.
InputType
, hasErrors: false),
1090
ConstantValue.Null, node.
InputType
, node.
InputType
, hasErrors: false);
1091
initialCheck = new BoundNegatedPattern(node.Syntax, nullCheck, node.
InputType
, narrowedType: node.
InputType
);
1097
ImmutableArray<BoundPropertySubpattern>.Empty, isExplicitNotNullTest: false, variable: null, variableAccess: null, node.
InputType
, node.
InputType
);
1106
var discards = deconstruction.SelectAsArray(d => d.WithPattern(MakeDiscardPattern(d.Syntax, d.Pattern.
InputType
)));
1116
newPattern = WithInputTypeCheckIfNeeded(newPattern, deconstruction[i].Pattern.
InputType
);
1123
node.
InputType
, node.NarrowedType, node.HasErrors);
1151
newPattern = WithInputTypeCheckIfNeeded(newPattern, property!.Pattern.
InputType
);
1158
node.
InputType
, node.NarrowedType, node.HasErrors);
1219
var discards = subpatterns.SelectAsArray(d => d.WithPattern(MakeDiscardPattern(d.Syntax, d.Pattern.
InputType
)));
1226
ituplePattern.
InputType
, ituplePattern.NarrowedType);
1239
newPattern = WithInputTypeCheckIfNeeded(newPattern, subpatterns[i].Pattern.
InputType
);
1243
ituplePattern.GetItemMethod, newSubpatterns, ituplePattern.
InputType
, ituplePattern.NarrowedType);
1302
newPattern = WithInputTypeCheckIfNeeded(newPattern, equivalentDefaultPatterns[i].
InputType
);
1308
listPattern.
InputType
, listPattern.NarrowedType);
1329
newPattern = WithInputTypeCheckIfNeeded(newPattern, slice.Pattern.
InputType
);
1332
slice.ReceiverPlaceholder, slice.ArgumentPlaceholder, slice.
InputType
, slice.NarrowedType);
1339
listPattern.
InputType
, listPattern.NarrowedType);
1388
return MakeDiscardPattern(pattern.Syntax, pattern.
InputType
);
Binder\DecisionDagBuilder_ListPatterns.cs (6)
16
Debug.Assert(input.Type.IsErrorType() || list.HasErrors || list.
InputType
.IsErrorType() ||
17
input.Type.Equals(list.
InputType
, TypeCompareKind.AllIgnoreOptions) &&
64
var sliceEvaluation = new BoundDagSliceEvaluation(slicePattern.Syntax, slicePattern.
InputType
, lengthTemp, startIndex: startIndex, endIndex: index,
68
var sliceTemp = new BoundDagTemp(slicePattern.Syntax, slicePattern.
InputType
, sliceEvaluation);
79
var indexEvaluation = new BoundDagIndexerEvaluation(subpattern.Syntax, subpattern.
InputType
, lengthTemp, index++,
83
var indexTemp = new BoundDagTemp(subpattern.Syntax, subpattern.
InputType
, indexEvaluation);
BoundTree\BoundBinaryPattern.cs (5)
13
Debug.Assert(Left.
InputType
.Equals(
InputType
, TypeCompareKind.AllIgnoreOptions));
17
Debug.Assert(Right.
InputType
.Equals(
InputType
, TypeCompareKind.AllIgnoreOptions));
23
Debug.Assert(Right.
InputType
.Equals(Left.NarrowedType, TypeCompareKind.AllIgnoreOptions));
BoundTree\BoundConstantPattern.cs (1)
13
Debug.Assert(NarrowedType.Equals(
InputType
, TypeCompareKind.AllIgnoreOptions) ||
BoundTree\BoundDiscardPattern.cs (1)
13
Debug.Assert(NarrowedType.Equals(
InputType
, TypeCompareKind.AllIgnoreOptions));
BoundTree\BoundListPattern.cs (2)
15
return Update(subpatterns, this.HasSlice, this.LengthAccess, this.IndexerAccess, this.ReceiverPlaceholder, this.ArgumentPlaceholder, this.Variable, this.VariableAccess, this.
InputType
, this.NarrowedType);
23
Debug.Assert(NarrowedType.Equals(
InputType
.StrippedType(), TypeCompareKind.AllIgnoreOptions));
BoundTree\BoundNegatedPattern.cs (3)
13
Debug.Assert(NarrowedType.Equals(
InputType
, TypeCompareKind.AllIgnoreOptions));
14
Debug.Assert(Negated.
InputType
.Equals(
InputType
, TypeCompareKind.AllIgnoreOptions));
BoundTree\BoundRecursivePattern.cs (1)
15
NarrowedType.Equals(
InputType
.StrippedType(), TypeCompareKind.AllIgnoreOptions) :
BoundTree\BoundRelationalPattern.cs (1)
13
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);
20
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)
158
TypeSymbol inputType = GetUpdatedSymbol(currentBinary, currentBinary.
InputType
);
Compilation\CSharpSemanticModel.cs (2)
2027
pattern.
InputType
, pattern.NarrowedType, nullability: default, convertedNullability: default,
2028
Compilation.Conversions.ClassifyBuiltInConversion(pattern.
InputType
, pattern.NarrowedType, isChecked: false, ref discardedUseSiteInfo));
Generated\BoundNodes.xml.Generated.cs (43)
8052
if (value != this.Value || constantValue != this.ConstantValue || !TypeSymbol.Equals(inputType, this.
InputType
, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything))
8092
if (!TypeSymbol.Equals(inputType, this.
InputType
, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything))
8145
if (declaredType != this.DeclaredType || isVar != this.IsVar || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(variable, this.Variable) || variableAccess != this.VariableAccess || !TypeSymbol.Equals(inputType, this.
InputType
, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything))
8186
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 || !TypeSymbol.Equals(inputType, this.
InputType
, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything))
8230
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))
8269
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))
8309
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))
8449
if (declaredType != this.DeclaredType || isExplicitNotNullTest != this.IsExplicitNotNullTest || !TypeSymbol.Equals(inputType, this.
InputType
, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything))
8488
if (disjunction != this.Disjunction || left != this.Left || right != this.Right || !TypeSymbol.Equals(inputType, this.
InputType
, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything))
8522
if (negated != this.Negated || !TypeSymbol.Equals(inputType, this.
InputType
, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything))
8561
if (relation != this.Relation || value != this.Value || constantValue != this.ConstantValue || !TypeSymbol.Equals(inputType, this.
InputType
, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything))
12240
TypeSymbol? inputType = this.VisitType(node.
InputType
);
12246
TypeSymbol? inputType = this.VisitType(node.
InputType
);
12255
TypeSymbol? inputType = this.VisitType(node.
InputType
);
12267
TypeSymbol? inputType = this.VisitType(node.
InputType
);
12280
TypeSymbol? inputType = this.VisitType(node.
InputType
);
12290
TypeSymbol? inputType = this.VisitType(node.
InputType
);
12299
TypeSymbol? inputType = this.VisitType(node.
InputType
);
12325
TypeSymbol? inputType = this.VisitType(node.
InputType
);
12333
TypeSymbol? inputType = this.VisitType(node.
InputType
);
12340
TypeSymbol? inputType = this.VisitType(node.
InputType
);
12347
TypeSymbol? inputType = this.VisitType(node.
InputType
);
14894
TypeSymbol inputType = GetUpdatedSymbol(node, node.
InputType
);
14902
TypeSymbol inputType = GetUpdatedSymbol(node, node.
InputType
);
14910
TypeSymbol inputType = GetUpdatedSymbol(node, node.
InputType
);
14921
TypeSymbol inputType = GetUpdatedSymbol(node, node.
InputType
);
14933
TypeSymbol inputType = GetUpdatedSymbol(node, node.
InputType
);
14946
TypeSymbol inputType = GetUpdatedSymbol(node, node.
InputType
);
14959
TypeSymbol inputType = GetUpdatedSymbol(node, node.
InputType
);
14981
TypeSymbol inputType = GetUpdatedSymbol(node, node.
InputType
);
14989
TypeSymbol inputType = GetUpdatedSymbol(node, node.
InputType
);
14997
TypeSymbol inputType = GetUpdatedSymbol(node, node.
InputType
);
17086
new TreeDumperNode("inputType", node.
InputType
, null),
17093
new TreeDumperNode("inputType", node.
InputType
, null),
17104
new TreeDumperNode("inputType", node.
InputType
, null),
17118
new TreeDumperNode("inputType", node.
InputType
, null),
17133
new TreeDumperNode("inputType", node.
InputType
, null),
17144
new TreeDumperNode("inputType", node.
InputType
, null),
17154
new TreeDumperNode("inputType", node.
InputType
, null),
17186
new TreeDumperNode("inputType", node.
InputType
, null),
17196
new TreeDumperNode("inputType", node.
InputType
, null),
17204
new TreeDumperNode("inputType", node.
InputType
, null),
17214
new TreeDumperNode("inputType", node.
InputType
, null),
Operations\CSharpOperationFactory.cs (14)
2511
TypeSymbol inputType = boundConstantPattern.
InputType
;
2522
TypeSymbol inputType = boundRelationalPattern.
InputType
;
2535
ITypeSymbol inputType = boundDeclarationPattern.
InputType
.GetPublicSymbol();
2546
ITypeSymbol matchedType = (boundRecursivePattern.DeclaredType?.Type ?? boundRecursivePattern.
InputType
.StrippedType()).GetPublicSymbol();
2559
boundRecursivePattern.
InputType
.GetPublicSymbol(),
2573
boundITuplePattern.
InputType
.StrippedType().GetPublicSymbol(),
2578
boundITuplePattern.
InputType
.GetPublicSymbol(),
2589
inputType: boundTypePattern.
InputType
.GetPublicSymbol(),
2602
inputType: boundNode.
InputType
.GetPublicSymbol(),
2616
inputType: boundNode.
InputType
.GetPublicSymbol(),
2627
boundNegatedPattern.
InputType
.GetPublicSymbol(),
2667
boundBinaryPattern.
InputType
.GetPublicSymbol(),
2750
cp.
InputType
.IsValidV6SwitchGoverningType())
2836
inputType: boundNode.
InputType
.GetPublicSymbol(),