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