mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
AST: add Type.interfaceTypeOfArchetype and some related APIs
This commit is contained in:
@@ -3133,6 +3133,7 @@ struct BridgedASTType {
|
||||
SWIFT_IMPORT_UNSAFE BRIDGED_INLINE OptionalBridgedDeclObj getAnyNominal() const;
|
||||
SWIFT_IMPORT_UNSAFE BRIDGED_INLINE BridgedASTType getInstanceTypeOfMetatype() const;
|
||||
SWIFT_IMPORT_UNSAFE BRIDGED_INLINE BridgedASTType getStaticTypeOfDynamicSelf() const;
|
||||
SWIFT_IMPORT_UNSAFE BRIDGED_INLINE BridgedASTType getInterfaceTypeOfArchetype() const;
|
||||
SWIFT_IMPORT_UNSAFE BRIDGED_INLINE BridgedASTType getSuperClassType() const;
|
||||
BRIDGED_INLINE MetatypeRepresentation getRepresentationOfMetatype() const;
|
||||
SWIFT_IMPORT_UNSAFE BRIDGED_INLINE BridgedSubstitutionMap getContextSubstitutionMap() const;
|
||||
|
||||
@@ -567,6 +567,10 @@ BridgedASTType BridgedASTType::getStaticTypeOfDynamicSelf() const {
|
||||
return {unbridged()->getAs<swift::DynamicSelfType>()->getSelfType().getPointer()};
|
||||
}
|
||||
|
||||
BridgedASTType BridgedASTType::getInterfaceTypeOfArchetype() const {
|
||||
return {unbridged()->getAs<swift::ArchetypeType>()->getInterfaceType().getPointer()};
|
||||
}
|
||||
|
||||
BridgedASTType BridgedASTType::getSuperClassType() const {
|
||||
return {unbridged()->getSuperclass().getPointer()};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user