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)
3692
var (collectionKind, targetElementType) = getCollectionDetails(node, node.
Type
);
3759
var resultType = TypeWithAnnotations.Create(node.
Type
);
3769
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))
11786
TypeSymbol? type = this.VisitType(node.
Type
);
14059
updatedNode = node.Update(node.CollectionTypeKind, placeholder, collectionCreation, collectionBuilderMethod, collectionBuilderInvocationPlaceholder, collectionBuilderInvocationConversion, node.WasTargetTyped, unconvertedCollectionExpression, elements, node.
Type
);
16480
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
);
392
Debug.Assert(node.
Type
is NamedTypeSymbol);
397
var collectionType = (NamedTypeSymbol)node.
Type
;
456
Debug.Assert(node.
Type
is { });