20 references to Type
Microsoft.CodeAnalysis.CSharp (20)
Binder\Binder.ValueChecks.cs (3)
4773if (expr.Type?.IsRefLikeType != true || expr.Elements.Length == 0) 4778var collectionTypeKind = ConversionsBase.GetCollectionExpressionTypeKind(_compilation, expr.Type, out var elementType); 4798Debug.Assert(constructMethod.ReturnType.Equals(expr.Type, TypeCompareKind.AllIgnoreOptions));
FlowAnalysis\NullableWalker.cs (3)
3872var (collectionKind, targetElementType) = getCollectionDetails(node, node.Type); 3896var resultType = TypeWithAnnotations.Create(node.Type); 3998Debug.Assert(TypeSymbol.Equals(strippedTargetCollectionType, node.Type, TypeCompareKind.AllIgnoreOptions));
Generated\BoundNodes.xml.Generated.cs (4)
6468if (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)) 11942TypeSymbol? type = this.VisitType(node.Type); 14232updatedNode = node.Update(node.CollectionTypeKind, placeholder, collectionCreation, collectionBuilderMethod, collectionBuilderInvocationPlaceholder, collectionBuilderInvocationConversion, node.WasTargetTyped, unconvertedCollectionExpression, elements, node.Type); 16646new TreeDumperNode("type", node.Type, null),
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (10)
34Debug.Assert(node.Type is { }); 44if (ConversionsBase.IsSpanOrListType(_compilation, node.Type, WellKnownType.System_Collections_Generic_List_T, out var listElementType)) 56return VisitCollectionInitializerCollectionExpression(node, node.Type); 61return VisitArrayOrSpanCollectionExpression(node, node.Type); 64if ((object)node.Type.OriginalDefinition == _compilation.GetWellKnownType(WellKnownType.System_Collections_Immutable_ImmutableArray_T)) 66return VisitArrayOrSpanCollectionExpression(node, node.Type); 455Debug.Assert(node.Type is NamedTypeSymbol); 460var collectionType = (NamedTypeSymbol)node.Type; 517Debug.Assert(node.Type.OriginalDefinition.SpecialType is 532Debug.Assert(node.Type is { });