Types before values: an interface before the constant merged with it.
(a: Node, b: Node)
| 3231 | |
| 3232 | /** Types before values: an interface before the constant merged with it. */ |
| 3233 | function typesFirst(a: Node, b: Node): number { |
| 3234 | return Number(!TYPE_DECLARATION_KINDS.has(a.kind)) - Number(!TYPE_DECLARATION_KINDS.has(b.kind)); |
| 3235 | } |
| 3236 | |
| 3237 | /** The declarations named `name` directly in the namespace `scope` of `file` (its top level when empty), types first. */ |
| 3238 | function declarationsIn(file: string, scope: string[], name: string, context: ResolutionContext): Node[] { |