Skip to content

path, impact: a file:line in a class body but in no member is refused, naming the members either side - #1798

Merged
swapnilpaliwal-sd merged 1 commit into
apps/integration-0.1.9from
apps/typescript/regress-c54d579c
Sep 30, 2026
Merged

swapnilpaliwal-sd merged 1 commit into
apps/integration-0.1.9from
apps/typescript/regress-c54d579c

Conversation

@swapnilpaliwal-sd

Copy link
Copy Markdown
Contributor
  • A file:line on a blank or doc-comment line between two members of a class was answered as the whole file's top-level code (TypeScript, JavaScript), or as a bare "no callable spans" (Java), with nothing saying the line holds no declaration. This is what a line number copied before an edit looks like.
  • It is now refused with the enclosing type and the nearest declaration above and below it. impact and path share the resolver.
  • Python class bodies are module nodes inside the type and answer as before (control).
  • Cases: new checks folded into the existing fileline-line-outside-file (JS) and fileline-dotted-basename (TS) cases, no new directory.
  • Context: the probe "regressions" this came from were not engine changes. The old build scores identically on the same product commit; they came from a stricter probe scorer and product edits. One probe targeted a line that had moved, and the silent <module> answer hid that.

Checked: new checks 3 of 32 fail before, 32 of 32 pass after; TS suite 97/0; cases JS 239/239, Java 298/298, TS/Python/C# failures identical to base; a real NestJS repo has 9988 call edges before and after, probes 29/73 before and after.

…bers is refused, naming the members either side

A line number copied before an edit often lands on a blank or doc-comment line
between two methods. Where a class body has no module node of its own
(TypeScript, JavaScript, Java, C#), that line fell through to the file's module
and was answered as its top-level code, with nothing saying the line held no
declaration; Java said only "no callable spans". It is now refused with the
enclosing type and the nearest declaration above and below it. A Python class
body is a module node inside the type and answers as before.

Checked: new checks in fileline-line-outside-file (JS) and
fileline-dotted-basename (TS) fail before (3 of 32) and pass after (32 of 32);
graph unchanged (9988 call edges on a real NestJS repo either way).
@swapnilpaliwal-sd
swapnilpaliwal-sd merged commit 836a944 into apps/integration-0.1.9 Sep 30, 2026
12 checks passed
@swapnilpaliwal-sd
swapnilpaliwal-sd deleted the apps/typescript/regress-c54d579c branch September 30, 2026 02:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant