Repository navigation
F#: a parameter list that starts on the next line makes the binding a function (Part of #9200) - #9289
Merged
Merged
Conversation
… function (Part of #9200) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
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.
Part of #9200
What
Items 1-3 of #9200 were already fixed by #9212, #9243, #9254, #9284 (re-checked on main: Julia/Nim/F# one-liners and the Nim operator name extract; Erlang and Nim baselines are 100%). This slice takes the largest remaining F# gap: Fantomas-style definitions whose parameter list starts on the next indented line (
let fnewline(x: int),static member Mnewline(...).func_startinfsharp.pynow accepts[ \t]*\r?\n[ \t]+\(after the name.F# tree-sitter accuracy: functions found 181 -> 197 of 265 (68.3% -> 74.3%), extras unchanged (6).
Class
F# definition shapes
func_startmisses.Sibling gaps
abstract member X<'T> : ...signatures, object-expressionmember __.X(...),memberwith a generic<'T>before the parameters, and members on multi-line type extensions. No burned-estate program needs these (core).Remaining slices
fsharp.py, test, baseline).julia.py, test, baseline).Gates
test_fsharp_strict.py: 19 passed (new test covers next-line parens, tupled members,let valuenewline= 3andlet plain = 1as non-functions).tree_sitter_accuracy_audit --lang fsharp --regeneratedone;audit_check.pyall clear; ruff format clean.golden-lock.sh crucible_check.py --update --yes; drift is the F# function set in the crucible corpus (more functions found).Lessons for agents
galaxyscope ... --db-only --output Xwrites the DB in a subdirectory of X; usefind X -name '*.db', not a glob on X.Cross-repo: none.
🤖 Generated with Claude Code