64 references to IsGenericType
Microsoft.CodeAnalysis.CSharp (44)
Binder\Binder_Symbols.cs (1)
1622if ((object)namedTypeRight != null && namedTypeRight.IsGenericType)
Binder\ForEachLoopBinder.cs (1)
895if (collectionType.IsGenericType)
Compilation\CSharpCompilation.cs (2)
1773if (mainType is null || mainType.IsGenericType || (mainType.TypeKind != TypeKind.Class && mainType.TypeKind != TypeKind.Struct && !mainType.IsInterface)) 1829if (candidate.IsGenericMethod || candidate.ContainingType.IsGenericType)
Emitter\NoPia\EmbeddedType.cs (1)
35Debug.Assert(!underlyingNamedType.AdaptedNamedTypeSymbol.IsGenericType);
Emitter\NoPia\EmbeddedTypesManager.cs (1)
291if (namedType.IsGenericType)
FlowAnalysis\NullableWalker.cs (2)
7362if (!symbolContainer.IsGenericType) 7367if (!containingType.IsGenericType)
Lowering\AsyncRewriter\AsyncMethodBuilderMemberCollection.cs (2)
350if (builderType.IsUnboundGenericType && builderType.ContainingType?.IsGenericType != true && builderType.Arity == 1) 361if (!builderType.IsGenericType)
Lowering\LocalRewriter\LoweredDynamicOperationFactory.cs (1)
730return _currentDynamicCallSiteContainer.IsGenericType ? field.AsMember(_currentDynamicCallSiteContainer) : field;
Symbols\BaseTypeAnalysis.cs (1)
282bool hasGenerics = type.IsGenericType;
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)
111if (!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)
1037if (isGenericMethod(this) || ContainingType.IsGenericType)
Symbols\NamedTypeSymbol.cs (5)
935if (!IsGenericType) 969if (!IsGenericType) 1005if (!IsGenericType) 1044Debug.Assert(typeA.IsGenericType); 1150if (!this.IsGenericType)
Symbols\PublicModel\NamedTypeSymbol.cs (1)
185bool INamedTypeSymbol.IsGenericType => UnderlyingNamedTypeSymbol.IsGenericType;
Symbols\Retargeting\RetargetingSymbolTranslator.cs (2)
494if (newDefinition.Kind == SymbolKind.ErrorType && !newDefinition.IsGenericType) 1002if (!method.IsGenericMethod && !retargetedType.IsGenericType)
Symbols\Source\SourceConstructorSymbolBase.cs (1)
75if (_lazyIsVararg && (IsGenericMethod || ContainingType.IsGenericType || _lazyParameters.Length > 0 && _lazyParameters[_lazyParameters.Length - 1].IsParams))
Symbols\Source\SourceMemberContainerSymbol.cs (1)
5096bool containsExtensionMethods = ((this.IsStatic && !this.IsGenericType) || this.IsScriptClass) && this.declaration.ContainsExtensionMethods;
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (3)
1687if (!this.IsGenericType) 1716if (interface1.IsGenericType && interface2.IsGenericType &&
Symbols\Source\SourceMethodSymbolWithAttributes.cs (2)
783if (isAnyNestedMethodGeneric || ContainingType?.IsGenericType == true) 912if (IsGenericMethod || ContainingType.IsGenericType)
Symbols\Source\SourceNamedTypeSymbol_Bases.cs (1)
106if (this.IsGenericType && !baseContainsErrorTypes && this.DeclaringCompilation.IsAttributeType(localBase))
Symbols\Source\SourceOrdinaryMethodSymbolBase.cs (1)
424else if (isVararg && (IsGenericMethod || ContainingType.IsGenericType || Parameters.Length > 0 && Parameters[Parameters.Length - 1].IsParams))
Symbols\Symbol_Attributes.cs (1)
333if (attributeTypesBuilder[i].IsGenericType)
Symbols\TypeSymbolExtensions.cs (1)
1878RoslynDebug.Assert(type.IsGenericType);
Symbols\TypeUnification.cs (2)
150if (!nt1.IsGenericType || !nt2.IsGenericType)
Symbols\TypeWithAnnotations.cs (1)
585if (namedType.IsGenericType)
Symbols\UnboundGenericType.cs (2)
21if (!type.IsGenericType) 33original.AsMember(originalContainingType.IsGenericType ? originalContainingType.AsUnboundGenericType() : originalContainingType);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (7)
CodeGen\CodeGenTupleTest.cs (7)
491Assert.True(iface.IsGenericType); 506Assert.True(iface.IsGenericType); 518Assert.True(iface.IsGenericType); 530Assert.True(iface.IsGenericType); 693Assert.True(constraint.IsGenericType); 709Assert.True(constraint.IsGenericType); 1003Assert.True(field2Type.IsGenericType);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (10)
Attributes\AttributeTests.cs (10)
9942Assert.False(comp.GlobalNamespace.GetTypeMember("C").GetAttributes().Single().AttributeClass.IsGenericType); 9946Assert.False(comp.GlobalNamespace.GetTypeMember("C").GetAttributes().Single().AttributeClass.IsGenericType); 9963Assert.False(comp.GlobalNamespace.GetTypeMember("C").GetAttributes().Single().AttributeClass.IsGenericType); 9971Assert.False(comp.GlobalNamespace.GetTypeMember("C").GetAttributes().Single().AttributeClass.IsGenericType); 9992Assert.False(comp.GlobalNamespace.GetTypeMember("C").GetAttributes().Single().AttributeClass.IsGenericType); 9996Assert.False(comp.GlobalNamespace.GetTypeMember("C").GetAttributes().Single().AttributeClass.IsGenericType); 10018Assert.False(comp.GlobalNamespace.GetTypeMember("C").GetAttributes().Single().AttributeClass.IsGenericType); 10022Assert.False(comp.GlobalNamespace.GetTypeMember("C").GetAttributes().Single().AttributeClass.IsGenericType); 10044Assert.False(comp.GlobalNamespace.GetTypeMember("C").GetAttributes().Single().AttributeClass.IsGenericType); 10048Assert.False(comp.GlobalNamespace.GetTypeMember("C").GetAttributes().Single().AttributeClass.IsGenericType);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Symbols\AnonymousTypesSymbolTests.cs (2)
1022Assert.True(fieldsCount == 0 ? !type.IsGenericType : type.IsGenericType);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
Extensions.cs (1)
405((NamedTypeSymbol)typeSym).IsGenericType)