()
| 17 | }; |
| 18 | |
| 19 | export default function createDeclarationIndexer() { |
| 20 | const ids = new Index(); |
| 21 | |
| 22 | return function markDeclaration(node) { |
| 23 | const id = generate(node); |
| 24 | |
| 25 | node.id = ids.resolve(id); |
| 26 | node.length = id.length; |
| 27 | node.fingerprint = null; |
| 28 | |
| 29 | return node; |
| 30 | }; |
| 31 | }; |