(node: Node | undefined, name: string)
| 633 | } |
| 634 | |
| 635 | bindingIn(node: Node | undefined, name: string): Binding | undefined { |
| 636 | for ( |
| 637 | let current: Node | null | undefined = node; |
| 638 | current; |
| 639 | current = current.parent |
| 640 | ) { |
| 641 | const scope = this.byNode.get(current) |
| 642 | if (scope && name in scope.bindings) return scope.bindings[name] |
| 643 | } |
| 644 | return this.root.bindings[name] |
| 645 | } |
| 646 | |
| 647 | private inScope(node: Node, visit: () => void): void { |
| 648 | const parentScope = this.scope |