Member predicate Type::RefType::getSourceDeclaration

Gets the source declaration of this type.

For parameterized instances of generic types and raw types, the source declaration is the corresponding generic type.

For non-parameterized types declared inside a parameterized instance of a generic type, the source declaration is the corresponding type in the generic type.

For all other types, the source declaration is the type itself.

RefType getSourceDeclaration()