19 references to Type
Microsoft.CodeAnalysis.CSharp (19)
Binder\Binder.ValueChecks.cs (3)
4519if (expr.Type?.IsRefLikeType != true || expr.Elements.Length == 0) 4524var collectionTypeKind = ConversionsBase.GetCollectionExpressionTypeKind(_compilation, expr.Type, out var elementType); 4544Debug.Assert(constructMethod.ReturnType.Equals(expr.Type, TypeCompareKind.AllIgnoreOptions));
FlowAnalysis\NullableWalker.cs (3)
3753var (collectionKind, targetElementType) = getCollectionDetails(node, node.Type); 3820var resultType = TypeWithAnnotations.Create(node.Type); 3830Debug.Assert(TypeSymbol.Equals(strippedTargetCollectionType, node.Type, TypeCompareKind.IgnoreNullableModifiersForReferenceTypes));
Generated\BoundNodes.xml.Generated.cs (4)
6467if (collectionTypeKind != this.CollectionTypeKind || placeholder != this.Placeholder || collectionCreation != this.CollectionCreation || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(collectionBuilderMethod, this.CollectionBuilderMethod) || collectionBuilderInvocationPlaceholder != this.CollectionBuilderInvocationPlaceholder || collectionBuilderInvocationConversion != this.CollectionBuilderInvocationConversion || wasTargetTyped != this.WasTargetTyped || unconvertedCollectionExpression != this.UnconvertedCollectionExpression || elements != this.Elements || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything)) 11822TypeSymbol? type = this.VisitType(node.Type); 14095updatedNode = node.Update(node.CollectionTypeKind, placeholder, collectionCreation, collectionBuilderMethod, collectionBuilderInvocationPlaceholder, collectionBuilderInvocationConversion, node.WasTargetTyped, unconvertedCollectionExpression, elements, node.Type); 16516new TreeDumperNode("type", node.Type, null),
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (9)
36Debug.Assert(node.Type is { }); 46if (ConversionsBase.IsSpanOrListType(_compilation, node.Type, WellKnownType.System_Collections_Generic_List_T, out var listElementType)) 58return VisitCollectionInitializerCollectionExpression(node, node.Type); 63return VisitArrayOrSpanCollectionExpression(node, collectionTypeKind, node.Type, TypeWithAnnotations.Create(elementType)); 66if (ConversionsBase.IsSpanOrListType(_compilation, node.Type, WellKnownType.System_Collections_Immutable_ImmutableArray_T, out var arrayElementType)) 72var immutableArrayOfTargetCollectionTypeEmpty = immutableArrayOfTEmpty.AsMember((NamedTypeSymbol)node.Type); 399Debug.Assert(node.Type is NamedTypeSymbol); 404var collectionType = (NamedTypeSymbol)node.Type; 471Debug.Assert(node.Type is { });