Skip to content

#3332 follow-up: ruby calls_out misses paren-less calls and ?/! method names (Level-1 recall 33.7%) #3377

Closed

Description

@squid-protocol

From the #3332 Level-1 benchmark (tests/tools/call_graph_accuracy.py): ruby's calls_out recall against tree-sitter is 33.7% (every other measured language is ≥85%).

Top misses: command!, to_s, key?, stdout, puts, each, map, present?, require.

CALLS_OUT_C_STYLE needs name(. Idiomatic Ruby calls without parentheses (puts x, xs.each do, obj.to_s), and its method names can end in ?/!.

Under the #3327 contract these are all invocations. Fix shape: a ruby-local calls_out pattern with a [?!]? suffix, plus receiver-dot calls without parens (\.name\b after an identifier). Keep precision by never matching bare paren-less words: Ruby cannot tell foo the local variable from foo the call without a symbol table. Measure with call_graph_accuracy.py before and after.

Activity

  1. added
    enhancement
    core-engine
    on Sep 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    core-engineenhancement

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions