MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / typesFirst

Function typesFirst

src/resolution/import-resolver.ts:3132–3134  ·  view source on GitHub ↗

Types before values: an interface before the constant merged with it.

(a: Node, b: Node)

Source from the content-addressed store, hash-verified

3130
3131/** Types before values: an interface before the constant merged with it. */
3132function 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. */
3137function declarationsIn(file: string, scope: string[], name: string, context: ResolutionContext): Node[] {

Callers

nothing calls this directly

Calls 2

NumberInterface · 0.85
hasMethod · 0.80

Tested by

no test coverage detected