Repository navigation
Dart calls_out: generic invocations f<T>(x) and nullable type arguments (Part of #6454) - #6473
Conversation
…(Part of #6454) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
No description provided. |
|
PR #6473 @ 02fadd4: 2 failed check(s) == full-suite (failure) -- real == full-suite part 2/3 (failure) -- real |
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]>
|
CI shepherd: the head of this PR (f44de30) is not the one a maintainer labelled |
|
No description provided. |
|
No description provided. |
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 inQUALIFIED_CALLS_OUT_PATTERNS) replaces the plainname(pattern for dart. It is the calls_out (java/kotlin/groovy): generic constructor and function callsName<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 throughsplice().golden-lock.sh crucible_check.py --update --yes; coverage chart regenerated.Evidence
call_graph_accuracy.pydart, before -> after: recall 95.0% -> 99.0% (FN 128 -> 25), precision 95.7% -> 95.8% (FP 109 -> 111; TP 2428 -> 2531).--ciOK.Calls Out Togains 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.pr_gates --fast7/7,--ratchets9 pass 0 fail,audit_check.pyclear, tree-wide guard tests and graph tests pass (283).Class / Sibling gaps
Class: dart
calls_outskipped 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:formal_parameter<optional_formal_parameters(51): NOT confirmed as an engine defect. In the sampled cases (ToolbarOptions,TextStyle,RouteSettings,FocusManager) the callee is a realconst 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).apply/variable68,apply/apply53) and constructor application (apply/constructor69): different mechanism (no parenthesised call syntax), own slice.=initializers (declaration<compound_statement): detector header/declaration handling, own slice.token_tree<macro_invocationpattern positions andtoken_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