2 writes to InputType
Microsoft.CodeAnalysis.CSharp (2)
Generated\BoundNodes.xml.Generated.cs (2)
7998
this.
InputType
= inputType;
8009
this.
InputType
= inputType;
125 references to InputType
Microsoft.CodeAnalysis.CSharp (125)
Binder\DecisionDagBuilder.cs (5)
287
Debug.Assert(pattern.HasErrors || pattern.
InputType
.Equals(input.Type, TypeCompareKind.AllIgnoreOptions) || pattern.
InputType
.IsErrorType());
522
RoslynDebug.Assert(input.Type.IsErrorType() || recursive.HasErrors || recursive.
InputType
.IsErrorType() || input.Type.Equals(recursive.
InputType
, TypeCompareKind.AllIgnoreOptions));
679
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)
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 (43)
8044
if (value != this.Value || constantValue != this.ConstantValue || !TypeSymbol.Equals(inputType, this.
InputType
, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything))
8084
if (!TypeSymbol.Equals(inputType, this.
InputType
, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything))
8137
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))
8178
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))
8222
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))
8261
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))
8301
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))
8441
if (declaredType != this.DeclaredType || isExplicitNotNullTest != this.IsExplicitNotNullTest || !TypeSymbol.Equals(inputType, this.
InputType
, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything))
8480
if (disjunction != this.Disjunction || left != this.Left || right != this.Right || !TypeSymbol.Equals(inputType, this.
InputType
, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything))
8514
if (negated != this.Negated || !TypeSymbol.Equals(inputType, this.
InputType
, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything))
8553
if (relation != this.Relation || value != this.Value || constantValue != this.ConstantValue || !TypeSymbol.Equals(inputType, this.
InputType
, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything))
12232
TypeSymbol? inputType = this.VisitType(node.
InputType
);
12238
TypeSymbol? inputType = this.VisitType(node.
InputType
);
12247
TypeSymbol? inputType = this.VisitType(node.
InputType
);
12259
TypeSymbol? inputType = this.VisitType(node.
InputType
);
12272
TypeSymbol? inputType = this.VisitType(node.
InputType
);
12282
TypeSymbol? inputType = this.VisitType(node.
InputType
);
12291
TypeSymbol? inputType = this.VisitType(node.
InputType
);
12317
TypeSymbol? inputType = this.VisitType(node.
InputType
);
12325
TypeSymbol? inputType = this.VisitType(node.
InputType
);
12332
TypeSymbol? inputType = this.VisitType(node.
InputType
);
12339
TypeSymbol? inputType = this.VisitType(node.
InputType
);
14886
TypeSymbol inputType = GetUpdatedSymbol(node, node.
InputType
);
14894
TypeSymbol inputType = GetUpdatedSymbol(node, node.
InputType
);
14902
TypeSymbol inputType = GetUpdatedSymbol(node, node.
InputType
);
14913
TypeSymbol inputType = GetUpdatedSymbol(node, node.
InputType
);
14925
TypeSymbol inputType = GetUpdatedSymbol(node, node.
InputType
);
14938
TypeSymbol inputType = GetUpdatedSymbol(node, node.
InputType
);
14951
TypeSymbol inputType = GetUpdatedSymbol(node, node.
InputType
);
14973
TypeSymbol inputType = GetUpdatedSymbol(node, node.
InputType
);
14981
TypeSymbol inputType = GetUpdatedSymbol(node, node.
InputType
);
14989
TypeSymbol inputType = GetUpdatedSymbol(node, node.
InputType
);
17078
new TreeDumperNode("inputType", node.
InputType
, null),
17085
new TreeDumperNode("inputType", node.
InputType
, null),
17096
new TreeDumperNode("inputType", node.
InputType
, null),
17110
new TreeDumperNode("inputType", node.
InputType
, null),
17125
new TreeDumperNode("inputType", node.
InputType
, null),
17136
new TreeDumperNode("inputType", node.
InputType
, null),
17146
new TreeDumperNode("inputType", node.
InputType
, null),
17178
new TreeDumperNode("inputType", node.
InputType
, null),
17188
new TreeDumperNode("inputType", node.
InputType
, null),
17196
new TreeDumperNode("inputType", node.
InputType
, null),
17206
new TreeDumperNode("inputType", node.
InputType
, null),
Operations\CSharpOperationFactory.cs (14)
2520
TypeSymbol inputType = boundConstantPattern.
InputType
;
2531
TypeSymbol inputType = boundRelationalPattern.
InputType
;
2544
ITypeSymbol inputType = boundDeclarationPattern.
InputType
.GetPublicSymbol();
2555
ITypeSymbol matchedType = (boundRecursivePattern.DeclaredType?.Type ?? boundRecursivePattern.
InputType
.StrippedType()).GetPublicSymbol();
2568
boundRecursivePattern.
InputType
.GetPublicSymbol(),
2582
boundITuplePattern.
InputType
.StrippedType().GetPublicSymbol(),
2587
boundITuplePattern.
InputType
.GetPublicSymbol(),
2598
inputType: boundTypePattern.
InputType
.GetPublicSymbol(),
2611
inputType: boundNode.
InputType
.GetPublicSymbol(),
2625
inputType: boundNode.
InputType
.GetPublicSymbol(),
2636
boundNegatedPattern.
InputType
.GetPublicSymbol(),
2676
boundBinaryPattern.
InputType
.GetPublicSymbol(),
2759
cp.
InputType
.IsValidV6SwitchGoverningType())
2845
inputType: boundNode.
InputType
.GetPublicSymbol(),