Repository navigation
Julia short-form f(x) = expr definitions become one-line function units (Part of #9200) - #9243
Conversation
…ts (Part of #9200) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
No description provided. |
|
PR #9243 @ cb5588e: 1 failed check(s) == crucible-audit (zero-dependency) (failure) -- real |
…ess after merging main Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
CI shepherd: the head of this PR (5882cce) is not the one a maintainer labelled |
|
No description provided. |
|
PR #9243 @ 5882cce: 5 failed check(s) == db2 ${{ matrix.shard }} (cancelled) -- infra == full-suite part ${{ matrix.group }}/${{ needs.shard-plan.outputs.splits }} (cancelled) -- infra == publish-history (cancelled) -- infra == shard ${{ matrix.shard }} (cancelled) -- infra == store the suite's durations (cancelled) -- infra |
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
This PR conflicts with main, so no checks ran. Merge origin/main into it and regenerate generated files with their tools (never hand-merge them), then push. |
# Conflicts: # tests/golden_master_audit/12_scan_output_snapshots/gpu_json.json # tests/golden_master_audit/12_scan_output_snapshots/graph_sqlite.json # tests/golden_master_zero_dep_audit/12_scan_output_snapshots/gpu_json.json # tests/golden_master_zero_dep_audit/12_scan_output_snapshots/graph_sqlite.json
Only gpu_json / graph_sqlite conflicted; main's side was taken and both fixtures regenerated with crucible_check.py --update. The drift is the Julia one-line function units this PR adds. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
CI shepherd: the head of this PR (a666502) is not the one a maintainer labelled |
|
No description provided. |
|
No description provided. |
2 similar comments
|
No description provided. |
|
No description provided. |
|
No description provided. |
Part of #9200 (gap 1, Julia).
What
A Julia short-form definition (
square(x) = x * x) opens and closes no block, so Mode D never made a node for it. A new optional language-config keyoneline_opener(set only for Julia) makes thefunction_openerpass emit a one-line function unit for each such line, at any depth (amodulewraps most files). Group 1 of the pattern is the name; a dottedBase.show(...)is namedshow. Lines starting with a control keyword, and==,=>, keyword-argument and lambda forms, do not match.Julia tree-sitter accuracy: function recall 43.0% -> 88.4% (422 -> 867 of 981), baseline regenerated. Nim, F# and Erlang rows of #9200 shipped in #9212.
Class / Sibling gaps
Class: a definition whose body sits on its own opening line creates no scope, so a scope-balanced slicer emits no unit for it. Julia is the member fixed here (the Nim/F#/OCaml members landed in #9212; Lua in #2438).
Sibling gaps: (1) the argument count of a Julia one-liner is 0, because the
argsrule keys on thefunctionkeyword (args exact-match is 285 of 867 comparable;showrows in the audit sample); no burned estate needs it. (2) Mode D languages with afunction_openerbut no one-line recovery (ruby, matlab, livecode, elixirdef f(x), do: x) are unaudited. (3) Gap 4 of #9200, class-name enrollment for six languages, is a follow-up.Remaining slices
Julia one-liner args (
julia.pyargs rule + test + baseline); class enrollment per #9200 gap 4.Golden drift
tests/golden_master_auditblessed with golden-lock; drift comes from Julia one-liner units in the Julia crucible files.Tests / gates
test_julia_strict.py: positive forms, negatives (==,=>, assignment, lambda,for (i) =), module and nested cases.audit_check.pyall clear (ruff, mypy, dead-key, doc-refs, ast-accuracy, signal-coverage). Tree-sitter audit regenerated for julia.pr_gates --ratchetsnot run here.🤖 Generated with Claude Code