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

Function typesFirst

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

3233
3234/** Types before values: an interface before the constant merged with it. */
3235function typesFirst(a: Node, b: Node): number {
3236 return Number(!TYPE_DECLARATION_KINDS.has(a.kind)) - Number(!TYPE_DECLARATION_KINDS.has(b.kind));
3237}
3238
3239/** The declarations named `name` directly in the namespace `scope` of `file` (its top level when empty), types first. */
3240function 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