1 write to Type
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
5204
this.
Type
= type;
39 references to Type
Microsoft.CodeAnalysis.CSharp (39)
Binder\DecisionDagBuilder.cs (15)
287
Debug.Assert(pattern.HasErrors || pattern.InputType.Equals(input.
Type
, TypeCompareKind.AllIgnoreOptions) || pattern.InputType.IsErrorType());
365
while (input.Source is BoundDagTypeEvaluation source && isDerivedType(source.Input.
Type
, symbol.ContainingType))
407
Debug.Assert(variableAccess.Type!.Equals(input.
Type
, TypeCompareKind.AllIgnoreOptions) || variableAccess.Type.IsErrorType());
437
if (input.
Type
.CanContainNull() &&
456
if (!input.
Type
.Equals(type, TypeCompareKind.AllIgnoreOptions))
458
TypeSymbol inputType = input.
Type
.StrippedType(); // since a null check has already been done
464
if (input.
Type
.IsDynamic() ? type.SpecialType == SpecialType.System_Object : conversion.IsImplicit)
492
else if (constant.ConstantValue.IsString && input.
Type
.IsSpanOrReadOnlySpanChar())
522
RoslynDebug.Assert(input.
Type
.IsErrorType() || recursive.HasErrors || recursive.InputType.IsErrorType() || input.
Type
.Equals(recursive.InputType, TypeCompareKind.AllIgnoreOptions));
523
var inputType = recursive.DeclaredType?.Type ?? input.
Type
.StrippedType();
697
Debug.Assert(bin.HasErrors || output.
Type
.Equals(bin.NarrowedType, TypeCompareKind.AllIgnoreOptions));
708
var type = rel.Value.Type ?? input.
Type
;
1431
!test.Input.
Type
.Equals(other.Input.
Type
, TypeCompareKind.AllIgnoreOptions))
Binder\DecisionDagBuilder_ListPatterns.cs (3)
15
Debug.Assert(input.
Type
.IsErrorType() || list.HasErrors || list.InputType.IsErrorType() ||
16
input.
Type
.Equals(list.InputType, TypeCompareKind.AllIgnoreOptions) &&
17
input.
Type
.StrippedType().Equals(list.NarrowedType, TypeCompareKind.ConsiderEverything) &&
Binder\PatternExplainer.cs (9)
324
return !sense ? "null" : requireExactType ? input.
Type
.ToDisplayString() : "not null";
326
return sense ? "null" : requireExactType ? input.
Type
.ToDisplayString() : "not null";
357
input.
Type
.IsNullableType() && input.
Type
.GetNullableUnderlyingType().Equals(evaluationType, TypeCompareKind.AllIgnoreOptions))
469
if (input.
Type
.IsTupleType &&
473
var elements = input.
Type
.TupleElements;
514
return SampleValueString(remainingValues, input.
Type
, requireExactType: requireExactType, unnamedEnumValue: ref unnamedEnumValue);
583
string typeName = requireExactType ? input.
Type
.ToDisplayString() : null;
593
return requireExactType ? input.
Type
.ToDisplayString() : "_";
BoundTree\BoundDagTemp.cs (5)
28
this.
Type
.Equals(other.
Type
, TypeCompareKind.AllIgnoreOptions) &&
39
this.
Type
.Equals(other.
Type
, TypeCompareKind.AllIgnoreOptions) &&
45
return Hash.Combine(this.
Type
.GetHashCode(), Hash.Combine(this.Source?.GetHashCode() ?? 0, this.Index));
Generated\BoundNodes.xml.Generated.cs (3)
5218
if (!TypeSymbol.Equals(type, this.
Type
, TypeCompareKind.ConsiderEverything) || source != this.Source || index != this.Index)
11609
TypeSymbol? type = this.VisitType(node.
Type
);
16177
new TreeDumperNode("type", node.
Type
, null),
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (1)
538
if (t1.Input.
Type
.SpecialType is SpecialType.System_Double or SpecialType.System_Single)
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (2)
99
LocalSymbol temp = _factory.SynthesizedLocal(dagTemp.
Type
, syntax: _node, kind: kind);
484
_factory.Compilation.Conversions.ClassifyBuiltInConversion(test.Input.
Type
, typeEvaluation2.Type, isChecked: false, ref useSiteInfo) is Conversion conv &&
Utilities\ValueSetFactory.cs (1)
68
return ForType(input.
Type
);