Skip to content

Dart calls_out: generic invocations f<T>(x) and nullable type arguments (Part of #6454) - #6473

Merged
squid-protocol merged 6 commits into
mainfrom
churn/6454-20261024T1352Z
Oct 24, 2026
Merged

squid-protocol merged 6 commits into
mainfrom
churn/6454-20261024T1352Z

Conversation

@squid-protocol

@squid-protocol squid-protocol commented Oct 24, 2026 •

Copy link
Copy Markdown
Owner

Part of #6454 (siblings of #3799). First item of the issue (dart generic invocations) done; five items left (below).

What changed

  • CALLS_OUT_DART (new, _shared_patterns.py, registered in QUALIFIED_CALLS_OUT_PATTERNS) replaces the plain name( pattern for dart. It is the calls_out (java/kotlin/groovy): generic constructor and function calls Name<T>( / new X<>() missed #4124 JVM generic pattern (annotation guard C1 kept) plus nullable type arguments (ValueNotifier<String?>(null), Completer<T?>()): ? is allowed inside the list, : is not, so a ternary never opens one. Bounds and disjoint-start rules unchanged.
  • tests/extraction/languages/test_calls_out_dart_generics_6454.py: generic, nested, nullable, bang forms; annotation, comparison, ternary, | and generic-type-only non-calls; ReDoS immunity; driven through splice().
  • Golden masters re-blessed via golden-lock.sh crucible_check.py --update --yes; coverage chart regenerated.

Evidence

  • call_graph_accuracy.py dart, before -> after: recall 95.0% -> 99.0% (FN 128 -> 25), precision 95.7% -> 95.8% (FP 109 -> 111; TP 2428 -> 2531). --ci OK.
  • Golden drift: dart Calls Out To gains only real generic constructor calls (DiagnosticsProperty<T>(, ParentDataElement<T>(this), LabeledGlobalKey<T>(...), IndexedSlot<T>(...)). scope_check.py --expect dart: other languages move only in the last digit of PageRank (global normalisation shifts when dart edges are added); no non-PageRank change outside dart.
  • Gates: pr_gates --fast 7/7, --ratchets 9 pass 0 fail, audit_check.py clear, tree-wide guard tests and graph tests pass (283).

Class / Sibling gaps

Class: dart calls_out skipped a call whose callee is followed by a type-argument list (C3). Handled: f<T>(x), Foo<T>(x), a!.f<T>() (bang shape), nullable and one-level nested arguments. Not handled here, none needs a burned-estate program:

  • dart formal_parameter<optional_formal_parameters (51): NOT confirmed as an engine defect. In the sampled cases (ToolbarOptions, TextStyle, RouteSettings, FocusManager) the callee is a real const X(...) / X(...) call in the body or initializer list; the type name in the parameter list is merely the first textual occurrence tree-sitter classifies. The ledger verdict "GitGalaxy wrong" looks like a harness cause-classification artifact; needs a source re-read of all 51 and a corrected verdict by the owner of the ledger (not hand-edited here).
  • haskell juxtaposition application (apply/variable 68, apply/apply 53) and constructor application (apply/constructor 69): different mechanism (no parenthesised call syntax), own slice.
  • c++ declared type names with = initializers (declaration<compound_statement): detector header/declaration handling, own slice.
  • rust token_tree<macro_invocation pattern positions and token_tree<token_tree (47): macro token-tree handling, own slice.
    Remaining slices: the five items above, in that order of size (haskell, c++, rust, dart-params after re-verdict).

🤖 Generated with Claude Code

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 24, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 24, 2026 14:18
@squid-protocol
squid-protocol enabled auto-merge (squash) October 24, 2026 14:24
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol squid-protocol added the shepherd:waiting-on-main Bot: the failing check fails on main too (main's to fix). Guide: docs/ci.md label Oct 24, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

PR #6473 @ 02fadd4: 2 failed check(s)

== full-suite (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/40101874883/job/120899388151
repro: python -m pytest -q tests
errors:
##[error]Process completed with exit code 1.
log tail:
Commit: f3dc54e1fb89da6852db922499a0233137369e1d
Build Date: 2026-10-12T17:48:21Z
Worker ID: {577d0c6c-3f52-4cb0-9441-ed7bf45b3e1a}
Region: centralus
Cloud: Azure
##[endgroup]
##[group]Operating System
Ubuntu
24.04.5
LTS
##[endgroup]
##[group]Runner Image
Image: ubuntu-24.04
Version: 20261012.334.1
Included Software: https://github.com/actions/runner-images/blob/ubuntu24/20261012.334/images/ubuntu/Ubuntu2404-Readme.md
Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu24%2F20261012.334
##[endgroup]
##[group]GITHUB_TOKEN Permissions
Contents: read
Metadata: read
##[endgroup]
Secret source: Actions
Cache mode: write
Prepare workflow directory
Prepare all required actions
Complete job name: full-suite
##[group]Run echo "full-suite parts: $PARTS (tested-tree skip: $SKIP, suite plan: $PLAN)"
echo "full-suite parts: $PARTS (tested-tree skip: $SKIP, suite plan: $PLAN)"
# #4935: "skipped" is a pass only when the gate proved this tree green on the PR; otherwise it is a failure.
# #6278: or when the suite plan proved the PR changes only prose no test or engine code opens (mode skip).
test "$PARTS" = "success" || { test "$PARTS" = "skipped" && { test "$SKIP" = "true" || test "$PLAN" = "skip"; }; }
shell: /usr/bin/bash -e {0}
env:
PARTS: failure
SKIP:
PLAN: full
##[endgroup]
full-suite parts: failure (tested-tree skip: , suite plan: full)
##[error]Process completed with exit code 1.
Cleaning up orphan processes

== full-suite part 2/3 (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/40101874883/job/120897985517
repro: python -m pytest -q tests/extraction/languages/test_calls_out_keywords_3359.py::test_annotation_languages_use_the_no_annotation_pattern
failing tests: tests/extraction/languages/test_calls_out_keywords_3359.py::test_annotation_languages_use_the_no_annotation_pattern
errors:
fail-on-cache-miss: false
E AssertionError: assert re.compile('(?<!@)\b([A-Z_a-zªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ
tests/extraction/languages/test_calls_out_keywords_3359.py:188: AssertionError
FAILED tests/extraction/languages/test_calls_out_keywords_3359.py::test_annotation_languages_use_the_no_annotation_pattern - AssertionError: assert re.compile('(?<!@)\b([A-Z_a-zªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-ي
##[error]Process completed with exit code 1.
log tail:
env:
PYTHONUTF8: 1
GITGALAXY_LICENSE_KEY: COMMUNITY_FREE_TIER
OMP_NUM_THREADS: 1
pythonLocation: /opt/hostedtoolcache/Python/3.12.15/x64
PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib/pkgconfig
Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib
PYTEST_ADDOPTS: --ignore=tests/cobol_mainframe
##[endgroup]
With the provided path, there will be 1 file uploaded
Artifact name is valid!
Root directory input is valid!
Uploading artifact: test-times-part-2.zip
Beginning upload of artifact content to blob storage
Uploaded bytes 207473
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is 7b5fbb3557b9748fe3b35e1d248279c1cb36e050e7c7008edbf94207f65c2eb6
Finalizing artifact upload
Artifact test-times-part-2 successfully finalized. Artifact ID 12563607189
Artifact test-times-part-2 has been successfully uploaded! Final size is 207473 bytes. Artifact ID is 12563607189
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/40101874883/artifacts/12563607189
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/cc590efd-b8ff-4623-9073-1b525bb83eff' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/usr/bin/git config --global --add safe.directory /home/runner/work/gitgalaxy/gitgalaxy
Removing SSH command configuration
[command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Removing HTTP extra header
[command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Removing includeIf entries pointing to credentials config files
[command]/usr/bin/git config --local --name-only --get-regexp ^includeIf.gitdir:
[command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
Cleaning up orphan processes

@squid-protocol squid-protocol added shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md and removed shepherd:waiting-on-main Bot: the failing check fails on main too (main's to fix). Guide: docs/ci.md labels Oct 24, 2026
@squid-protocol squid-protocol added shepherd:waiting-on-main Bot: the failing check fails on main too (main's to fix). Guide: docs/ci.md and removed shepherd:waiting-on-main Bot: the failing check fails on main too (main's to fix). Guide: docs/ci.md shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md labels Oct 24, 2026
test_annotation_languages_use_the_no_annotation_pattern still asserted dart
used CALLS_OUT_C_STYLE_NO_ANNOTATION; dart now uses CALLS_OUT_DART (generic and
nullable type arguments, same @name( guard).

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol removed the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 24, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

CI shepherd: the head of this PR (f44de30) is not the one a maintainer labelled shepherd:merge on (new commits, or never approved), so the label was removed and nothing merges unreviewed code. Re-add the label when the new head is ready (shepherd:reapprove marks this PR until then).

@squid-protocol squid-protocol added shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:waiting-on-main Bot: the failing check fails on main too (main's to fix). Guide: docs/ci.md shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md labels Oct 24, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol enabled auto-merge (squash) October 24, 2026 15:31
@squid-protocol
squid-protocol merged commit 9117434 into main Oct 24, 2026
66 checks passed
@squid-protocol
squid-protocol deleted the churn/6454-20261024T1352Z branch October 24, 2026 15:51
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant