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