20 references to Type
Microsoft.CodeAnalysis.CSharp (20)
Binder\Binder.ValueChecks.cs (2)
4779if (expr.Type?.IsRefLikeType != true) 4790var collectionTypeKind = ConversionsBase.GetCollectionExpressionTypeKind(_compilation, expr.Type, out var elementType);
FlowAnalysis\NullableWalker.cs (3)
3881var (collectionKind, targetElementType) = getCollectionDetails(node, node.Type); 3906var resultType = TypeWithAnnotations.Create(node.Type); 4119Debug.Assert(TypeSymbol.Equals(strippedTargetCollectionType, node.Type, TypeCompareKind.AllIgnoreOptions));
Generated\BoundNodes.xml.Generated.cs (4)
6567if (collectionTypeKind != this.CollectionTypeKind || placeholder != this.Placeholder || collectionCreation != this.CollectionCreation || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(collectionBuilderMethod, this.CollectionBuilderMethod) || collectionBuilderElementsPlaceholder != this.CollectionBuilderElementsPlaceholder || wasTargetTyped != this.WasTargetTyped || hasWithElement != this.HasWithElement || unconvertedCollectionExpression != this.UnconvertedCollectionExpression || elements != this.Elements || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything)) 12072TypeSymbol? type = this.VisitType(node.Type); 14379updatedNode = node.Update(node.CollectionTypeKind, placeholder, collectionCreation, collectionBuilderMethod, collectionBuilderElementsPlaceholder, node.WasTargetTyped, node.HasWithElement, unconvertedCollectionExpression, elements, node.Type); 16810new TreeDumperNode("type", node.Type, null),
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (11)
34Debug.Assert(node.Type is { }); 44if (ConversionsBase.IsSpanOrListType(_compilation, node.Type, WellKnownType.System_Collections_Generic_List_T, out var listElementType)) 78return VisitCollectionInitializerCollectionExpression(node, node.Type); 83return VisitArrayOrSpanCollectionExpression(node, node.Type); 89(object)node.Type.OriginalDefinition == _compilation.GetWellKnownType(WellKnownType.System_Collections_Immutable_ImmutableArray_T)) 91return VisitArrayOrSpanCollectionExpression(node, node.Type); 486Debug.Assert(node.Type is NamedTypeSymbol); 488Debug.Assert(node.Type.IsArrayInterface(out _)); 491var collectionType = (NamedTypeSymbol)node.Type; 567Debug.Assert(node.Type.OriginalDefinition.SpecialType is 582Debug.Assert(node.Type is { });