Types before values: an interface before the constant merged with it.
(a: Node, b: Node)
| 3130 | |
| 3131 | /** Types before values: an interface before the constant merged with it. */ |
| 3132 | function typesFirst(a: Node, b: Node): number { |
| 3133 | return Number(!TYPE_DECLARATION_KINDS.has(a.kind)) - Number(!TYPE_DECLARATION_KINDS.has(b.kind)); |
| 3134 | } |
| 3135 | |
| 3136 | /** The declarations named `name` directly in the namespace `scope` of `file` (its top level when empty), types first. */ |
| 3137 | function declarationsIn(file: string, scope: string[], name: string, context: ResolutionContext): Node[] { |