1 write to Type
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
5265
this.
Type
= type;
60 references to Type
Microsoft.CodeAnalysis.CSharp (60)
Binder\DecisionDagBuilder.cs (34)
350
public TypeSymbol GetInputType() => UnionValue?.Type ?? DagTemp.
Type
;
366
(pattern.HasErrors || pattern.InputType.Equals(input.DagTemp.
Type
, TypeCompareKind.AllIgnoreOptions) || pattern.InputType.IsErrorType()) :
453
Type
.SpecialType: SpecialType.System_Object
479
propertyInput.
Type
is NamedTypeSymbol { IsUnionType: true } match &&
534
while (input.Source is BoundDagTypeEvaluation source && isDerivedType(source.Input.
Type
, symbol.ContainingType))
594
Debug.Assert(variableAccess.Type!.Equals(input.
Type
, TypeCompareKind.AllIgnoreOptions) || variableAccess.Type.IsErrorType());
624
if (input.
Type
.CanContainNull() &&
672
tryGetValueInput.
Type
is NamedTypeSymbol { IsUnionType: true } match)
724
Type
.SpecialType: SpecialType.System_Boolean,
731
propertyInput.
Type
is NamedTypeSymbol { IsUnionType: true } match &&
744
if (inputInfo.UnionValue is { } unionValue && Binder.GetUnionTypeHasValueProperty((NamedTypeSymbol)inputInfo.DagTemp.
Type
) is PropertySymbol hasValue)
787
if (Binder.GetUnionTypeTryGetValueMethod(_conversions, (NamedTypeSymbol)inputInfo.DagTemp.
Type
, type) is MethodSymbol tryGetValue)
807
var typeEvaluation = new BoundDagTypeEvaluation(syntax, outParameterTemp.
Type
.StrippedType(), outParameterTemp);
811
if (!typeEvaluationTemp.
Type
.Equals(type, TypeCompareKind.AllIgnoreOptions))
831
if (!input.
Type
.Equals(type, TypeCompareKind.AllIgnoreOptions))
833
TypeSymbol inputType = input.
Type
.StrippedType(); // since a null check has already been done
840
if (input.
Type
.IsDynamic() ? type.SpecialType == SpecialType.System_Object : conversion.IsImplicit)
885
if (constantValue.IsString && (inputInfo.UnionValue?.Type ?? inputInfo.DagTemp.
Type
).IsSpanOrReadOnlySpanChar())
1003
if ((receiver is null ? input.
Type
: receiver.Type.StrippedType()) is NamedTypeSymbol { IsUnionType: true } unionType &&
1164
outputInfo.DagTemp.
Type
.Equals(bin.NarrowedType, TypeCompareKind.AllIgnoreOptions) :
2218
if (!testUnionInstance.
Type
.Equals(otherUnionInstance.
Type
, TypeCompareKind.AllIgnoreOptions))
2415
!test.Input.
Type
.Equals(other.Input.
Type
, TypeCompareKind.AllIgnoreOptions))
2447
if (s1UnionInstance.
Type
.Equals(s2UnionInstance.
Type
, TypeCompareKind.AllIgnoreOptions))
2586
return s1.Input.
Type
.Equals(s2.Input.
Type
, TypeCompareKind.AllIgnoreOptions) && s1Input.Equals(s2Input);
2618
if (!s1.Type.Equals(s2Source.MakeResultTemp().
Type
, TypeCompareKind.AllIgnoreOptions))
2630
if (!s2.Type.Equals(s1Source.MakeResultTemp().
Type
, TypeCompareKind.AllIgnoreOptions))
3729
Debug.Assert(oldTemp.
Type
.Equals(newTemp.
Type
, TypeCompareKind.AllIgnoreOptions));
3779
if (!typeEvalInput.
Type
.Equals(e1Input.
Type
, TypeCompareKind.AllIgnoreOptions))
Binder\DecisionDagBuilder_CheckOrReachability.cs (2)
357
var normalizedPattern = PatternNormalizer.Rewrite(pattern, rootIdentifier.
Type
);
371
var normalizedNegatedPattern = PatternNormalizer.Rewrite(negated, rootIdentifier.
Type
);
Binder\PatternExplainer.cs (11)
367
return !sense ? "null" : requireExactType ? input.
Type
.ToDisplayString() : "not null";
369
return sense ? "null" : requireExactType ? input.
Type
.ToDisplayString() : "not null";
415
input.
Type
.IsNullableType() && input.
Type
.GetNullableUnderlyingType().Equals(evaluationType, TypeCompareKind.AllIgnoreOptions))
527
if (input.
Type
.IsTupleType &&
531
var elements = input.
Type
.TupleElements;
572
return SampleValueString(remainingValues, input.
Type
, requireExactType: requireExactType, unnamedEnumValue: ref unnamedEnumValue);
589
var conversions = input.
Type
.ContainingAssembly.TypeConversions;
708
e.Input.
Type
is NamedTypeSymbol { IsUnionType: true } unionType &&
722
string typeName = requireExactType ? input.
Type
.ToDisplayString() : null;
732
return requireExactType ? input.
Type
.ToDisplayString() : "_";
BoundTree\BoundDagTemp.cs (3)
43
this.
Type
.Equals(other.
Type
, TypeCompareKind.AllIgnoreOptions) &&
49
return Hash.Combine(this.
Type
.GetHashCode(), Hash.Combine(this.Source?.GetHashCode() ?? 0, this.Index));
FlowAnalysis\NullableWalker_Patterns.cs (1)
710
switch (_conversions.WithNullability(false).ClassifyConversionFromType(e.Input.
Type
, e.Type, isChecked: false, ref discardedUseSiteInfo).Kind)
Generated\BoundNodes.xml.Generated.cs (3)
5279
if (!TypeSymbol.Equals(type, this.
Type
, TypeCompareKind.ConsiderEverything) || source != this.Source || index != this.Index)
11984
TypeSymbol? type = this.VisitType(node.
Type
);
16664
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);
519
_factory.Compilation.Conversions.ClassifyBuiltInConversion(test.Input.
Type
, typeEvaluation2.Type, isChecked: false, ref useSiteInfo) is Conversion conv &&
Utilities\ValueSetFactory.cs (3)
69
return ForType(input.
Type
);
76
var unionType = (NamedTypeSymbol)unionInstance.
Type
;
85
if (compilation.IsFeatureEnabled(MessageID.IDS_FeatureClosedClasses) && input.
Type
is NamedTypeSymbol { IsClosed: true } closedClass)