14 references to AsUnboundGenericType
Microsoft.CodeAnalysis.CSharp (6)
Binder\Binder_Symbols.cs (2)
1231
resultType = unconstructedType.
AsUnboundGenericType
();
1625
return type.WithTypeAndModifiers(namedTypeRight.
AsUnboundGenericType
(), type.CustomModifiers);
Symbols\Metadata\PE\SymbolFactory.cs (1)
164
return ((object)namedType != null && namedType.IsGenericType) ? namedType.
AsUnboundGenericType
() : type;
Symbols\NamedTypeSymbol.cs (1)
1145
return OriginalDefinition.
AsUnboundGenericType
();
Symbols\Retargeting\RetargetingSymbolTranslator.cs (1)
507
return newDefinition.
AsUnboundGenericType
();
Symbols\UnboundGenericType.cs (1)
33
original.AsMember(originalContainingType.IsGenericType ? originalContainingType.
AsUnboundGenericType
() : originalContainingType);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
CodeGen\CodeGenTupleTest.cs (1)
24517
Assert.Empty(derivedSymbol.GetSymbol().
AsUnboundGenericType
().AllInterfaces());
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (5)
Attributes\AttributeTests.cs (3)
4534
attrs.First().VerifyValue(0, TypedConstantKind.Type, cClass.
AsUnboundGenericType
());
4574
attrs.First().VerifyValue(0, TypedConstantKind.Type, bClass.
AsUnboundGenericType
());
4914
NamedTypeSymbol GClass = m.GlobalNamespace.GetTypeMember("GClass").
AsUnboundGenericType
();
Attributes\AttributeTests_Synthesized.cs (2)
1769
Assert.Equal(stateMachine.
AsUnboundGenericType
(), stateMachineAttribute.ConstructorArguments.Single().ValueInternal);
1878
Assert.Equal(stateMachine.
AsUnboundGenericType
(), iteratorAttribute.ConstructorArguments.Single().ValueInternal);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Symbols\TypeTests.cs (2)
1830
var unboundGeneric1 = originalDefinition.
AsUnboundGenericType
();
1831
var unboundGeneric2 = originalDefinition.
AsUnboundGenericType
();