20 references to Type
Microsoft.CodeAnalysis.CSharp (20)
Binder\Binder.ValueChecks.cs (2)
4776if (expr.Type?.IsRefLikeType != true) 4787var collectionTypeKind = ConversionsBase.GetCollectionExpressionTypeKind(_compilation, expr.Type, out var elementType);
FlowAnalysis\NullableWalker.cs (3)
3996var (collectionKind, targetElementType) = getCollectionDetails(node, node.Type); 4021var resultType = TypeWithAnnotations.Create(node.Type); 4236Debug.Assert(TypeSymbol.Equals(strippedTargetCollectionType, node.Type, TypeCompareKind.AllIgnoreOptions));
Generated\BoundNodes.xml.Generated.cs (4)
6585if (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)) 12226TypeSymbol? type = this.VisitType(node.Type); 14554updatedNode = node.Update(node.CollectionTypeKind, placeholder, collectionCreation, collectionBuilderMethod, collectionBuilderElementsPlaceholder, node.WasTargetTyped, node.HasWithElement, unconvertedCollectionExpression, elements, node.Type); 17026new 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)) 73return VisitCollectionInitializerCollectionExpression(node, node.Type); 78return VisitArrayOrSpanCollectionExpression(node, node.Type); 84(object)node.Type.OriginalDefinition == _compilation.GetWellKnownType(WellKnownType.System_Collections_Immutable_ImmutableArray_T)) 86return VisitArrayOrSpanCollectionExpression(node, node.Type); 551Debug.Assert(node.Type is NamedTypeSymbol); 553Debug.Assert(node.Type.IsArrayInterface(out _)); 556var collectionType = (NamedTypeSymbol)node.Type; 632Debug.Assert(node.Type.OriginalDefinition.SpecialType is 647Debug.Assert(node.Type is { });