Repository navigation
Conversation
Synvoya
force-pushed
the
fix/scala-qualified-extends
branch
from
July 27, 2026 02:41
b80ef97 to
7fd68d9
Compare
Contributor
Author
|
Follow-up audit against current v8 found that qualified generic parents such as pkg.Base[Int] still retained the package prefix through the generic_type path. The branch now normalizes both plain and generic qualified parents to the tail type name and extends the regression test. Current validation: tests/test_languages.py 319 passed, 13 skipped; Ruff and git diff --check passed. |
Synvoya
force-pushed
the
fix/scala-qualified-extends
branch
from
July 27, 2026 04:15
7fd68d9 to
8949e4f
Compare
safishamsi
pushed a commit
that referenced
this pull request
Aug 30, 2026
A qualified Scala base (`extends pkg.Base with other.Trait`) parses as a stable_type_identifier (or generic_type wrapping one), which the heritage handler did not match, so the edge was dropped or targeted the full qualified string. Add a helper that takes the tail type name across all three shapes, emitting inherits for the first parent and mixes_in for the rest, with no package/generic-arg false edges.
safishamsi
added a commit
that referenced
this pull request
Aug 30, 2026
Ships two batches: the robot/defang/watch/semantic-guard set — Robot Framework extractor (#3192), generalized control-token defang (#3183), watch unresolved-link preservation (#3190), unverified-semantic-loss guard (#3203), hook-guard search detection (#3121), stale-SKILL.md backup (#3144), report/wiki count fixes (#3148/#3127); and a rescued batch of @Synvoya cross-language inheritance-edge corrections (JS #1790, PHP #1791, Scala #1792/#1794, Kotlin #1793, C# #1817, Go #1818) that had been buried in the backlog for ~7 weeks. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Member
|
Shipped in v0.9.53 via authorship-preserving cherry-pick so you keep contributor-graph credit. Thanks @Synvoya — this was verified still-live on the current tree and landed as part of a cross-language heritage-edge batch. Release: https://github.com/Graphify-Labs/graphify/releases/tag/v0.9.53 |
Soumyadip2003-AI
added a commit
to Soumyadip2003-AI/graphify
that referenced
this pull request
Sep 2, 2026
…hify-Labs#3277) `extends (\w+)` and `implements ([\w,\s]+)` both stop at the first `.`, so a namespace-qualified base was truncated to its namespace. Two silent consequences: a node was fabricated for the namespace (`Database`, `Outer`) and the heritage edge pointed at it, and because the capture never reached the comma, every remaining interface in the list was dropped - `implements Database.Batchable<sObject>, Schedulable` lost `Schedulable` entirely. That shape is the canonical scheduled batch job in Salesforce, and the fabricated `Database` node collected an edge from every batch class in the repo. Reuse the `_TYPE` expression for both clauses and route each through a `heritage_names()` helper that splits on top-level commas only - so a generic argument list (`Map<String, Object>`) is not shredded into fragments - then drops generic arguments and takes the tail segment. This is the tail-name treatment Kotlin (Graphify-Labs#1793) and Scala (Graphify-Labs#1794) already use. Interface `extends` goes through the same helper. Extraction of the existing fixtures is unchanged. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01UEfivKVYzq1e5E6hJHiuKi
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bug
Scala qualified parents were either dropped or retained as package-qualified labels. For example,
class Foo extends pkg.Base with other.Traitshould emitFoo -> BaseandFoo -> Trait.Root cause
The heritage walker handled
type_identifierand a narrowgeneric_typeshape. Qualified parents parse asstable_type_identifier; qualified generic parents wrap that node insidegeneric_type.Fix
Normalize heritage nodes through one bounded helper:
type_identifierreturns its name;stable_type_identifierreturns its final type segment;generic_typerecursively normalizes its base type.Only direct heritage children are considered, so package segments, generic arguments and constructor arguments cannot become parent edges. The first parent remains
inherits; subsequentwithparents remainmixes_in.Validation
tests/test_languages.py: 319 passed, 13 optional-DM skips.git diff --check: passed.