53 references to IsGenericType
Microsoft.CodeAnalysis.CSharp (53)
Binder\Binder_Symbols.cs (1)
1639
if ((object)namedTypeRight != null && namedTypeRight.
IsGenericType
)
Binder\ForEachLoopBinder.cs (1)
1074
if (collectionType.
IsGenericType
)
BoundTree\BoundInlineArrayAccess.cs (1)
28
IsGenericType
: false
Compilation\CSharpCompilation.cs (2)
1951
if (mainType is null || mainType.
IsGenericType
|| (mainType.TypeKind != TypeKind.Class && mainType.TypeKind != TypeKind.Struct && !mainType.IsInterface))
2007
if (candidate.IsGenericMethod || candidate.ContainingType.
IsGenericType
)
Emitter\NoPia\EmbeddedType.cs (1)
35
Debug.Assert(!underlyingNamedType.AdaptedNamedTypeSymbol.
IsGenericType
);
Emitter\NoPia\EmbeddedTypesManager.cs (1)
307
if (namedType.
IsGenericType
)
FlowAnalysis\NullableWalker.cs (2)
8263
if (!symbolContainer.
IsGenericType
)
8268
if (!containingType.
IsGenericType
)
Lowering\AsyncRewriter\AsyncMethodBuilderMemberCollection.cs (2)
350
if (builderType.IsUnboundGenericType && builderType.ContainingType?.
IsGenericType
!= true && builderType.Arity == 1)
361
if (!builderType.
IsGenericType
)
Lowering\LocalRewriter\LocalRewriter_Call.cs (1)
152
Debug.Assert(!interceptor.ContainingType.
IsGenericType
);
Lowering\LocalRewriter\LoweredDynamicOperationFactory.cs (1)
715
return _currentDynamicCallSiteContainer.
IsGenericType
? field.AsMember(_currentDynamicCallSiteContainer) : field;
Symbols\Metadata\PE\DynamicTypeDecoder.cs (2)
226
if ((object)containingType != null && containingType.
IsGenericType
)
234
Debug.Assert(newContainingType.
IsGenericType
);
Symbols\Metadata\PE\MetadataDecoder.cs (1)
372
Debug.Assert(candidate?.
IsGenericType
!= true);
Symbols\Metadata\PE\NativeIntegerTypeDecoder.cs (1)
110
if (!type.
IsGenericType
)
Symbols\Metadata\PE\SymbolFactory.cs (1)
164
return ((object)namedType != null && namedType.
IsGenericType
) ? namedType.AsUnboundGenericType() : type;
Symbols\Metadata\PE\TupleTypeDecoder.cs (2)
261
if (containingType is object && containingType.
IsGenericType
)
264
Debug.Assert(decodedContainingType.
IsGenericType
);
Symbols\MethodSymbol.cs (1)
1047
if (isGenericMethod(this) || ContainingType.
IsGenericType
)
Symbols\NamedTypeSymbol.cs (5)
922
if (!
IsGenericType
)
956
if (!
IsGenericType
)
992
if (!
IsGenericType
)
1031
Debug.Assert(typeA.
IsGenericType
);
1137
if (!this.
IsGenericType
)
Symbols\PublicModel\NamedTypeSymbol.cs (1)
185
bool INamedTypeSymbol.IsGenericType => UnderlyingNamedTypeSymbol.
IsGenericType
;
Symbols\Retargeting\RetargetingSymbolTranslator.cs (2)
494
if (newDefinition.Kind == SymbolKind.ErrorType && !newDefinition.
IsGenericType
)
983
if (!method.IsGenericMethod && !retargetedType.
IsGenericType
)
Symbols\Source\SourceConstructorSymbolBase.cs (1)
73
if (this.IsVararg && (IsGenericMethod || ContainingType.
IsGenericType
|| _lazyParameters.Length > 0 && _lazyParameters[_lazyParameters.Length - 1].IsParams))
Symbols\Source\SourceMemberContainerSymbol.cs (1)
5379
bool containsExtensionMethods = ((this.IsStatic && !this.
IsGenericType
) || this.IsScriptClass) && this.declaration.ContainsExtensionMethods;
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (3)
1731
if (!this.
IsGenericType
)
1760
if (interface1.
IsGenericType
&& interface2.
IsGenericType
&&
Symbols\Source\SourceMethodSymbolWithAttributes.cs (4)
843
if (isAnyNestedMethodGeneric || ContainingType?.
IsGenericType
== true)
971
if (IsGenericMethod || ContainingType.
IsGenericType
)
1039
if (ContainingType.
IsGenericType
)
1197
if (ContainingType.
IsGenericType
)
Symbols\Source\SourceNamedTypeSymbol.cs (1)
1232
return builderType is NamedTypeSymbol { TypeKind: TypeKind.Class or TypeKind.Struct,
IsGenericType
: false };
Symbols\Source\SourceNamedTypeSymbol_Bases.cs (1)
107
if (this.
IsGenericType
&& !baseContainsErrorTypes && this.DeclaringCompilation.IsAttributeType(localBase))
Symbols\Source\SourceOrdinaryMethodSymbol.cs (1)
900
else if (isVararg && (IsGenericMethod || ContainingType.
IsGenericType
|| Parameters.Length > 0 && Parameters[Parameters.Length - 1].IsParams))
Symbols\Symbol_Attributes.cs (1)
342
if (attributeTypesBuilder[i].
IsGenericType
)
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeSymbol.cs (4)
567
else if (containingType.IsArray || !interfaceMethod.ContainingType.
IsGenericType
)
601
if (!interfaceMethod.ContainingType.
IsGenericType
)
621
else if (containingType.IsArray || !interfaceMethod.ContainingType.
IsGenericType
)
698
else if (containingType.IsArray || !interfaceMethod.ContainingType.
IsGenericType
)
Symbols\TypeSymbol.cs (1)
2539
if (elementField is not null && elementField.ContainingType.
IsGenericType
)
Symbols\TypeSymbolExtensions.cs (1)
1969
RoslynDebug.Assert(type.
IsGenericType
);
Symbols\TypeUnification.cs (2)
150
if (!nt1.
IsGenericType
|| !nt2.
IsGenericType
)
Symbols\TypeWithAnnotations.cs (1)
613
if (namedType.
IsGenericType
)
Symbols\UnboundGenericType.cs (2)
21
if (!type.
IsGenericType
)
33
original.AsMember(originalContainingType.
IsGenericType
? originalContainingType.AsUnboundGenericType() : originalContainingType);