feat(api): expose function to check if symbol represents a supertype

This commit is contained in:
Riley Bruins 2024-09-15 20:10:08 -07:00 committed by Amaan Qureshi
parent 939e61c58d
commit 0683136ca0
4 changed files with 79 additions and 2 deletions

View file

@ -138,6 +138,8 @@ TSSymbolType ts_language_symbol_type(
return TSSymbolTypeRegular;
} else if (metadata.visible) {
return TSSymbolTypeAnonymous;
} else if (metadata.supertype) {
return TSSymbolTypeSupertype;
} else {
return TSSymbolTypeAuxiliary;
}