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