Gets the superclass of the class. In js, this will be max 1 element :param ast tree: :rtype: list[str]
(tree)
| 217 | |
| 218 | |
| 219 | def get_inherits(tree): |
| 220 | """ |
| 221 | Gets the superclass of the class. In js, this will be max 1 element |
| 222 | :param ast tree: |
| 223 | :rtype: list[str] |
| 224 | """ |
| 225 | if tree['superClass']: |
| 226 | if 'name' in tree['superClass']: |
| 227 | return [tree['superClass']['name']] |
| 228 | return [djoin(tree['superClass']['object']['name'], tree['superClass']['property']['name'])] |
| 229 | return [] |
| 230 | |
| 231 | |
| 232 | def get_acorn_version(): |
no test coverage detected