You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
pascal: an enumerated type is dropped from the graph entirely #4055
A Pascal/Delphi enumerated type and all of its values produce no nodes at all — the whole type vanishes. Given:
type
TColor = (clRed, clGreen, clBlue);
the graph has nothing for TColor, clRed, clGreen, or clBlue.
Why
In graphify/extractors/pascal.py, the declType handler only emits a node when the type's kind is declClass, declIntf, or declHelper. An enumerated type parses as declType -> type -> declEnum -> declEnumValue, which matches none of those, so the declaration falls through to a plain child walk and is dropped.
Expected
An enumerated type is a named type whose values are its cases. It should become a type node with a case_of edge per value, matching every other language with enums (Java #1719 / C# / Swift / Scala) and the existing class/interface handling.
Note: this is the AST (tree-sitter-pascal) path, which is the AST-quality extractor; the regex fallback used when tree-sitter-pascal isn't installed only models classes/interfaces and is out of scope here.
Activity
github-actions commentedon Oct 4, 2026
Thanks for opening this issue, @rajatnagda45. A maintainer will take a look soon.
If you would like to discuss it in real time, come say hi on our Discord server. For longer-form questions and ideas there is also GitHub Discussions.
To help us triage, please make sure the report includes what you expected, what actually happened, and the steps (and a small sample) to reproduce it.
safishamsi commentedon Oct 4, 2026
Fixed in v0.9.76 (live on PyPI as
graphifyy==0.9.76) via #4056, thanks @rajatnagda45. 🙏