9 references to CaseType
Microsoft.CodeAnalysis.CSharp (9)
Utilities\TypeUnionValueSet.cs (9)
33/// <summary>If <see cref="CaseType"/> was included in the set due to being a subtype of a closed type, this is the original closed type it was expanded from.</summary> 38return $"(CaseType: {CaseType}, OriginalClosedBase: {OriginalClosedBase})"; 67Debug.Assert(!typesInUnion.Any(t => t.CaseType.IsNullableType())); 68Debug.Assert(!typesInUnion.Any(t => t.CaseType is NamedTypeSymbol { IsClosed: true } closedType && closedType.TryGetClosedSubtypes(out var subtypes) && subtypes is not [])); 94Debug.Assert(!typesInUnion.Any(t => t.CaseType.IsNullableType())); 98ConstantValue? matches = DecisionDagBuilder.ExpressionOfTypeMatchesPatternTypeForLearningFromSuccessfulTypeTest(conversions, type, t.CaseType, ref useSiteInfo); 193if (evaluateCore(node, caseInfo.CaseType, ref useSiteInfo) != false) 296return walkUpInvalidClosedSubtypesIfNeeded(sample?.CaseType, sample?.OriginalClosedBase, binder, ref useSiteInfo); 335if (EvaluateNodeForInputValue(root, t.CaseType, ref useSiteInfo) != false)