fix(resolution): JS/TS calls never pick a class member by name alone when the code rules it out
Found by the README-wide sweep: the "most depended on" lists of popular
repos were topped by members that nothing actually calls.
- A member call on a NAMESPACE import (
import * as z from "zod/v4") calls
one of the module's exports, never some class's method; a receiver
imported from a package outside the repository names nothing in it.
matchMethodCall's name/word-overlap strategies no longer run for either.
zod:z.string()had bound 2,640 calls to a test helper'sstring
getter (Mocker::string topped the hub list with 3,209),z.toJSONSchema
371 to ZodType::toJSONSchema; trpcz.recordto a generated SDK class. - A receiver-less JS/TS or Go call cannot reach a PROPERTY, FIELD or enum
case either (it already excluded methods, #1714/#1857): typeorm's mocha
it(…)bound 2,879 calls to an interface'sitproperty anddescribe(…)
1,368 to a command class'sdescribestring field. - A bare call to a name the file imports from outside the repository
(import { useQuery } from '@tanstack/react-query', CommonJS
require('supertest'), vitest'stest) gets no name-matched candidate. - The React resolver leaves an imported component/hook/context to import
resolution (framework resolution runs first and picked any same-named
project hook — trpc tests'useQuerylanded on a hook nested inside one of
trpc's factories), and never targets a nested hook; same-file hook first. - "Outside the repository" is the coordinator's
isOutOfRepoImport:
isExternalImport (aliases, workspace members) AND not the repo's own package
name AND unresolvable by resolveImportPath — so axios's own tests'
import { getAdapter } from 'axios'now resolve to lib/adapters.js instead
of the .d.ts interface member.
A/B vs main (edge diffs, every change classified): zod −5,228, typeorm
−4,318, express −700 (calls onto the var request = require('supertest')
binding), trpc −350/+17, excalidraw −233/+3 (props callbacks onto Props
interface members), hono −150, axios −52/+23 (the self-import upgrade),
bulletproof-react: 156 sites that pointed at ANOTHER app's component/hook in
the three-app monorepo now point at the importing app's own, 16 wrong
cross-app links dropped, 8 imports the React heuristic had guessed right lost
(per-app tsconfig paths don't resolve — separate follow-up); gin/cobra
byte-identical, react-redux-realworld byte-identical.
🤖 Generated with Claude Code