(boundTemplate: AbstractBoundTemplate<T>)
| 444 | * @return identifiers in template |
| 445 | */ |
| 446 | export function getIndexerTemplateIdentifiers<T>(boundTemplate: AbstractBoundTemplate<T>): { |
| 447 | identifiers: Set<TopLevelIdentifier<T>>; |
| 448 | errors: Error[]; |
| 449 | } { |
| 450 | const visitor = new IndexerVisitor<T>(boundTemplate); |
| 451 | const template = boundTemplate.getTemplateAst(); |
| 452 | if (template !== undefined) { |
| 453 | t.visitAll(visitor, template); |
| 454 | } |
| 455 | return {identifiers: visitor.identifiers, errors: visitor.errors}; |
| 456 | } |
no test coverage detected