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