Skip to content

feat: julia - broaden parser construct coverage#560

Open
danvinci wants to merge 4 commits into
tirth8205:mainfrom
danvinci:julia-qualified-names
Open

feat: julia - broaden parser construct coverage#560
danvinci wants to merge 4 commits into
tirth8205:mainfrom
danvinci:julia-qualified-names

Conversation

@danvinci

Copy link
Copy Markdown
Contributor

New constructs captured:

  • Function stubs (function foo end)
  • Qualified defs (function Base.show) — node carries julia_module_qualifier
  • Qualified calls (Mod.f(...)) — edge carries julia_call_module
  • Multi-segment paths (LinearAlgebra.BLAS.gemv) — full dotted qualifier
  • const type aliases (const V = Vector{Float64}) → Type nodes
  • Aliased imports (import X as Y)

Bug fixes:

  • Operator defs (Base.:+) produced a bogus node named after the module; now named by the operator
  • Short-form one-liner bodies (f(x) = g(x)) lost their call edges; now captured

Validation:

  • 11 new tests, full suite 1394 passed.
  • Parsed several installed packages (Makie, DataFrames, Lux, Distributions, …) on main vs this branch: 1607 .jl files, 0 parse errors

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