Repository navigation
Audit: the F# node map counts each and binding of a let rec chain (Part of #9200) - #9284
Merged
Merged
Conversation
…Part of #9200) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
This was referenced Nov 25, 2026
F#: a parameter list that starts on the next line makes the binding a function (Part of #9200)
#9289
Merged
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
The tree-sitter accuracy audit's F# node map read one function per
function_or_value_defn, butlet rec a x = .. and b y = ..is one node holding two bindings._fsharp_and_bindingsnow registers eachandfunction binding after the first (value bindings are skipped). fsharp baseline regenerated:real_functions262 -> 265, recall 69.1% -> 68.3%.Class
Reference undercount in the audit's node map for chained bindings (F#). Sibling: OCaml
andchains were not checked.Facts checked
All repros in #9200 (Erlang spec with record, Nim one-liner and operator, F# one-liner, Julia short form) already extract correctly on main (#9212, #9243, #9254); verified with
galaxyscope --db-only --debug.The 3 newly counted references are in
ModelParser.fs; the engine finds none of them as new. Two (getValueForComplexType,getValueForArrayOfGenericType) have the parameter list starting on the next line, which the engine'sfunc_startlookahead does not accept. That is a real engine gap, now visible instead of hidden.The earlier-reported extra (
extra_functions6 -> 7) is not anandbinding: the sampled extras are case variants (validatePreconditionsvsValidatePreconditions), so this PR does not remove it.Sibling gaps
func_start: a binding whose parameter list begins on the following line is missed (needs the[ \t]+lookahead to allow a newline plus indent). Burned estate: none.Gates
pytest tests/tools/test_tree_sitter_accuracy_nodemaps.py (11 passed);
audit_check.pyall clear; fsharp baseline regenerated in the selfscan venv.🤖 Generated with Claude Code