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

Function typesFirst

src/resolution/import-resolver.ts:3233–3235  ·  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

3231
3232/** Types before values: an interface before the constant merged with it. */
3233function 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. */
3238function 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