Skip to content

fix(parsers): #1660 leftovers — declaration-line convention, Ruby vars/values, Neo4j indexes for orphan labels - #1671

Merged
Shashankss1205 merged 1 commit into
mainfrom
fix/1660-batch
Aug 26, 2026
Merged

Shashankss1205 merged 1 commit into
mainfrom
fix/1660-batch

Conversation

@Shashankss1205

Copy link
Copy Markdown
Collaborator

Closes out #1660 (the 'Minor' split from the #1538 audit) plus the index gap #1653's author flagged:

  • Kotlin/PHP declaration lines: annotated/attributed declarations reported the annotation line (@Deprecated / #[Attr]) as line_number. Both now report the declaration proper — and crucially, their _get_parent_context walkers were aligned to the same line, because Hilt/Previews resolution and the writer's linking join context-line against the function's line_number (the Hilt/Previews suites caught the desync immediately when only one side moved).
  • Ruby: @@class_variables and $globals were invisible (missing node types in the query); value was always None — captures bucketed by id() of tree-sitter's fresh-per-access wrapper objects (n1 == n2 while id(n1) != id(n2)), fixed by bucketing on node span; and the type ladder tested @ before @@, leaving the class branch dead.
  • Schema: EnumMember/Object/Mixin/Extension/Parameter had index statements only inside if is_falkordb — Neo4j lookups on them were unavoidable label scans. They now get (name, path) indexes on perf(schema): index (name, path) so relationship writes seek, not scan #1653's pattern, with the existing meta-tests extended.

Kotlin/PHP goldens regenerated — property-level line shifts only, zero node/edge count drift. Unit suite 1418 passed / 7 skipped; all 21 goldens green.

Fixes #1660

…by class/global vars and values; Neo4j indexes for the falkordb-only labels

- kotlin/php: annotated/attributed declarations reported the annotation line
  as line_number (the declaration node starts at its annotation). Both now
  report the declaration proper — and their _get_parent_context walkers were
  aligned to the same line, since Hilt/Previews resolution and the writer
  join context line against the function's line_number.
- ruby: @@class_variables and $globals were never captured (missing node
  types in the query); variable `value` was ALWAYS None because captures
  bucketed by id() of tree-sitter's per-access wrapper objects (n1 == n2
  while id(n1) != id(n2)) — bucketing by node span fixes it; and the
  type ladder tested startswith("@") before "@@", leaving the class branch
  dead.
- schema: EnumMember/Object/Mixin/Extension/Parameter had index statements
  only in the is_falkordb branch, so Neo4j lookups on them were label scans
  (#1653's closing observation). They now get (name, path) indexes on the
  same pattern.

Kotlin/PHP goldens regenerated (property-level line shifts only — zero
node/edge count drift). Unit suite 1418 passed / 7 skipped; all 21 goldens
green.
@vercel

vercel Bot commented Aug 26, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
code-graph-context-pack Ready Ready Preview Aug 26, 2026 4:54pm

@github-project-automation github-project-automation Bot moved this to Backlog tasks in CGC Progress Board Aug 26, 2026
@Shashankss1205
Shashankss1205 merged commit 3129925 into main Aug 26, 2026
1 of 2 checks passed
@github-project-automation github-project-automation Bot moved this from Backlog tasks to Done in CGC Progress Board Aug 26, 2026
@Shashankss1205
Shashankss1205 deleted the fix/1660-batch branch August 26, 2026 16:54
@github-actions

Copy link
Copy Markdown
Contributor

Hi! 👋 Join our CodeGraphContext Discord channel to collaborate: https://discord.gg/dR4QY32uYQ

@github-actions

Copy link
Copy Markdown
Contributor

🔍 PR Code Graph Analysis

fix(parsers): #1660 leftovers — declaration-line convention, Ruby vars/values, Neo4j indexes for orphan labels (#1671)

📊 Interactive Visualization

View the blast radius graph: PR Reviewer Dashboard

📦 Artifacts

The graph JSON has been uploaded as a build artifact: pr-code-graph-1671


Generated by CodeGraphContext using FalkorDB Lite

This branch was successfully deployed

1 active deployment
Preview — 8c6ff71e Deployed Aug 26, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

chore(parsers): minor leftovers from the #1538 audit — annotation line convention, Ruby class/global vars, Ruby variable values

1 participant