(node: ScopeNode<void>, context: string)
| 29 | const toOffset = new PositionToOffset(source); |
| 30 | const actual: string[] = []; |
| 31 | const gather = (node: ScopeNode<void>, context: string) => { |
| 32 | const own = context |
| 33 | + source.slice(toOffset.convert(node.range.begin), toOffset.convert(node.range.end)); |
| 34 | actual.push(own); |
| 35 | node.children?.forEach(c => gather(c, own + ' -> ')); |
| 36 | }; |
| 37 | |
| 38 | root.children?.forEach(node => gather(node, '')); |
| 39 | return actual; |
no test coverage detected