import { UI5Class } from "@ui5-language-assistant/semantic-model-types" ; export function getSuperClasses ( clazz ) { const visited = new Set ( ) ; const superClasses = [ ] ; let currSuperClass = clazz . extends ; while ( currSuperClass !== undefined && ! visited . has ( currSuperClass ) ) { visited . add ( currSuperClass ) ; superClasses . push ( currSuperClass ) ; currSuperClass = currSuperClass . extends ; } return superClasses ; }