From 5f2ac00d3a89e041c7e2131cae47a2101f576c26 Mon Sep 17 00:00:00 2001 From: Joe Esquibel Date: Thu, 27 Aug 2026 15:39:14 -0400 Subject: [PATCH] fix(dart): why the tri-comparison args shape was so large -- 3 residual causes (#2309) Explored `dart/function/args/agree[none]_vs[gitgalaxy,tree_sitter]` (106 occurrences after #2335's named-parameter-group fix, was 205). Every one was `gg=N ts=0` or `gg=1 ts=0` -- i.e. one tool reporting a real count and the other 0. Three distinct causes, none of them a "real" arg-count disagreement: 1. **tree-sitter ground truth wrong for const/factory constructors** (`tree_sitter_accuracy_audit.py::_get_param_count`, reused by the tri-comparison gatherer). `constant_constructor_signature` (`const PointerEvent({...})`) and `factory_constructor_signature` (`factory ThemeData({...})`) don't expose a field-tagged "parameters" child -- unlike the plain `constructor_signature` -- so they fell through to `return 0`. Every `const`/`factory` constructor in the dart corpus (the dominant Flutter widget-constructor form) measured 0. Added both node types to the direct-`formal_parameter_list`-child branch that already handles `function_signature`/`setter_signature`. ~30 large mismatches. 2. **GitGalaxy over-counts a paren-less getter** (`detector.py`). A bodyless `Offset get pan;` reached `_count_top_level_args("Offset get pan")`, which has no `(` to unwrap and returns 1 (whole string as one segment). The bodyless-`;` branch now returns 0 when `not has_parens`. ~15 mismatches. 3. **GitGalaxy under-counts operator overloads** (`detector.py`). The `args` regex needs `NAME(...)`; `bool operator ==(Object other)` has `==` between the name token and the `(`, so `.search()` returns None and the count falls to 0. Added dart to the same "regex failed -> structural counter" fallback c/cpp already use (#2012), guarded on a literal `(` in the signature text so a paren-less getter body still reads 0. ~12 mismatches. Result: the args shape drops 106 -> 6, dart args accuracy 93.9% -> 99.65%, GitGalaxy and tree-sitter now agree on 1733/1739 comparable functions. The 6 survivors are all one unrelated shape -- a multi-line `@Deprecated('...' '...',)` annotation that dart's `func_start` wrongly consumes as a return-type prefix, so the annotation's own parens get counted instead of the real parameter list. Filed separately. Regenerated: both golden masters (26 diffs, all dart -- arg counts + downstream ripple, 0 non-dart content change); `tree_sitter_accuracy_baseline_ dart.json` (`args_exact_match` 1633 -> 1733). No summary-table or javascript- baseline change needed (a post-#2335 companion already refreshed the latter). Verification: test_dart.py (+ new getter/operator slicer case) + tests/ extraction (6235) green; ruff/mypy/dead-key/ast-accuracy clean; crucible_check both modes PASS; tree_sitter_accuracy_audit --all --ci + tri_comparison_chart --all --ci both green. Co-Authored-By: Claude Sonnet 5 --- gitgalaxy/core/detector.py | 48 +- tests/extraction/languages/test_dart.py | 107 ++- tests/golden_master_audit.json | 908 +++++++++--------- tests/golden_master_zero_dep_audit.json | 908 +++++++++--------- tests/tools/tree_sitter_accuracy_audit.py | 40 +- tests/tree_sitter_accuracy_baseline_dart.json | 2 +- 6 files changed, 1046 insertions(+), 967 deletions(-) diff --git a/gitgalaxy/core/detector.py b/gitgalaxy/core/detector.py index 33cb27003..3a7729a97 100644 --- a/gitgalaxy/core/detector.py +++ b/gitgalaxy/core/detector.py @@ -3512,20 +3512,30 @@ def _dart_scan_terminator( continue elif term_kind == "semi": end_idx = term_idx + 1 # Bug 2: bodyless constructor - # #2309: count the real parameter list directly instead of - # relying on the `args` regex here -- that regex must never - # accept a bare `;` terminator (it's `.search()`ed over the - # whole block for dart, so accepting `;` would just as - # readily match a real call statement inside some OTHER - # zero-paren declaration's body; see language_standards.py's - # own comment on this same issue for the confirmed false - # positive). `_count_top_level_args` on the signature text - # already known-good (func_start + `_find_balanced_end` - # already validated real, balanced parens to get here) has - # no such ambiguity. - args_count_override = self._count_top_level_args( - safe_code[start_idx:params_end_idx], treat_as_body=False - ) + if not has_parens: + # A bodyless, paren-less `;`-terminated declaration -- an abstract + # getter (`Offset get pan;`), `external Type name;` -- has no + # parameter list. `_count_top_level_args` on the bare name text + # ("Offset get pan") finds no `(` to unwrap and returns 1 (the whole + # string as one segment), a phantom argument against tree-sitter's + # correct 0 (the bulk of the small `dart/function/args/agree[none]` + # mismatches -- Flutter's `PointerEvent` getters). #2309-followup. + args_count_override = 0 + else: + # #2309: count the real parameter list directly instead of + # relying on the `args` regex here -- that regex must never + # accept a bare `;` terminator (it's `.search()`ed over the + # whole block for dart, so accepting `;` would just as + # readily match a real call statement inside some OTHER + # zero-paren declaration's body; see language_standards.py's + # own comment on this same issue for the confirmed false + # positive). `_count_top_level_args` on the signature text + # already known-good (func_start + `_find_balanced_end` + # already validated real, balanced parens to get here) has + # no such ambiguity. + args_count_override = self._count_top_level_args( + safe_code[start_idx:params_end_idx], treat_as_body=False + ) elif term_kind == "brace": end_idx = self._find_balanced_end(safe_code, term_idx, opener, closer) args_sig_end = term_idx + 1 @@ -5462,6 +5472,16 @@ def _calculate_block_metrics( # Since func_start already validated this is a function, we can reliably # fallback to the structural counter. args_count = self._count_top_level_args(args_search_text) + elif args_search_text is not None and "(" in args_search_text and self.primary_lang_id == "dart": + # #2309-followup: dart's `args` regex can't match an operator overload + # (`bool operator ==(Object other)`, `Widget operator [](int i)`) -- the + # `==`/`[]` sits between the name token and the `(`, so `.search()` + # returns None and the count silently falls to 0 against tree-sitter's + # correct 1. func_start already validated this is a real function; count + # its balanced parameter span structurally. Guarded on a literal `(` so + # a paren-less getter body (`Rect get bounds {`, whose args_search_text + # has none) still correctly reads 0, not 1. + args_count = self._count_top_level_args(args_search_text) except Exception as e: self.logger.debug(f"Argument-count regex extraction failed, leaving args_count 0: {e}") diff --git a/tests/extraction/languages/test_dart.py b/tests/extraction/languages/test_dart.py index 96c7450fb..bc18df834 100644 --- a/tests/extraction/languages/test_dart.py +++ b/tests/extraction/languages/test_dart.py @@ -51,7 +51,7 @@ "Map fakeClass = {};", "void classLikeFunction() {", "String a = 'class Foo {';", - "print(\"class Foo {\");", + 'print("class Foo {");', "// class Foo {", "/* class Foo { */", "/// class Foo {", @@ -61,14 +61,17 @@ ], } + @pytest.mark.parametrize("payload,expected", CLASS_START_CASES["valid"]) def test_dart_class_start_valid(payload, expected): assert_valid_match(DART_RULES["class_start"], payload, expected, "dart.class_start") + @pytest.mark.parametrize("payload", CLASS_START_CASES["invalid"]) def test_dart_class_start_invalid(payload): assert_invalid_no_match(DART_RULES["class_start"], payload, "dart.class_start") + @pytest.mark.parametrize("payload", CLASS_START_CASES["xfail_invalid"]) @pytest.mark.xfail(reason="String/comment lookalikes lack AST block shielding", strict=True) def test_dart_class_start_xfail_invalid(payload): @@ -107,7 +110,7 @@ def test_dart_class_start_xfail_invalid(payload): "var x = functionStart;", "typedef IntFunc = int Function();", "var myFunc = () {};", - "String s = \"Future foo() { \";", + 'String s = "Future foo() { ";', "// void main() {", # Issue #1417: Return-type shield (should not wander across `) {` and match body calls) " T? result,\n ) {\n Navigator.of(context).popUntilWithResult(predicate, result);", @@ -150,22 +153,27 @@ def test_dart_class_start_xfail_invalid(payload): ], } + @pytest.mark.parametrize("payload,expected", FUNC_START_CASES["valid"]) def test_dart_func_start_valid(payload, expected): assert_valid_match(DART_RULES["func_start"], payload, expected, "dart.func_start") + @pytest.mark.parametrize("payload", FUNC_START_CASES["invalid"]) def test_dart_func_start_invalid(payload): assert_invalid_no_match(DART_RULES["func_start"], payload, "dart.func_start") + @pytest.mark.parametrize("payload", FUNC_START_CASES["xfail_invalid"]) @pytest.mark.xfail(reason="String/comment lookalikes lack AST block shielding", strict=True) def test_dart_func_start_xfail_invalid(payload): assert_invalid_no_match(DART_RULES["func_start"], payload, "dart.func_start") + def test_dart_slicer_bug_2_and_4(): from gitgalaxy.core.detector import StructuralExtractor from gitgalaxy.standards.language_standards import LANGUAGE_DEFINITIONS + splicer = StructuralExtractor("dart", LANGUAGE_DEFINITIONS) # Bug 2: colon-initializer, no-braced-body constructor @@ -173,7 +181,10 @@ def test_dart_slicer_bug_2_and_4(): blocks, _ = splicer._slice_by_braces(bug2_code, "dart", DART_RULES, 0, {}) assert len(blocks) == 2, "Bug 2: Should find exactly 2 functions (the constructor and nextMethod)" assert blocks[0]["name"] == "LabeledGlobalKey" - assert bug2_code[blocks[0]["start_idx"]:blocks[0]["end_idx"]].strip() == "LabeledGlobalKey(this._debugLabel) : super.constructor();" + assert ( + bug2_code[blocks[0]["start_idx"] : blocks[0]["end_idx"]].strip() + == "LabeledGlobalKey(this._debugLabel) : super.constructor();" + ) assert blocks[1]["name"] == "nextMethod" # Bug 4: multi-line bare call-site invocation used as a list-literal element @@ -210,13 +221,7 @@ def test_dart_slicer_multi_initializer_constructor(): assert "Foo.raw" in names, "multi-initializer bodyless constructor must still be found" assert "nextMethod" in names - bodied_multi_init = ( - "class Foo {\n" - " Foo(this.a) : b = a, assert(a != null) {\n" - " print(a);\n" - " }\n" - "}\n" - ) + bodied_multi_init = "class Foo {\n Foo(this.a) : b = a, assert(a != null) {\n print(a);\n }\n}\n" blocks, _ = splicer._slice_by_braces(bodied_multi_init, "dart", DART_RULES, 0, {}) assert [b["name"] for b in blocks] == ["Foo"], "multi-initializer constructor WITH a body must still be found" @@ -244,6 +249,38 @@ def test_dart_slicer_long_parameter_list(): assert "normalMethod" in names +def test_dart_slicer_args_getters_and_operators_2309(): + """ + #2309-followup: two remaining `dart/function/args/agree[none]` causes on GitGalaxy's + side -- a paren-less getter (`Offset get pan;`) was counted as 1 arg (the bare name + text, with no `(` to unwrap, collapses to a single segment), and an operator overload + (`bool operator ==(Object other)`) was counted as 0 because the `args` regex can't + match a name token separated from its `(` by `==`/`[]`. + """ + from gitgalaxy.core.detector import StructuralExtractor + from gitgalaxy.standards.language_standards import LANGUAGE_DEFINITIONS + + splicer = StructuralExtractor("dart", LANGUAGE_DEFINITIONS) + code = ( + "class Vec {\n" + " Offset get pan;\n" # abstract getter -> 0 args + " double get scale => _scale;\n" # arrow getter -> 0 args + " bool operator ==(Object other) {\n return true;\n }\n" # -> 1 arg + " Vec operator +(Vec other) => _add(other);\n" # -> 1 arg + " Widget operator [](int index) {\n return _at(index);\n }\n" # -> 1 arg + " void move(double dx, double dy) {}\n" # regression guard -> 2 args + "}\n" + ) + blocks, _ = splicer._slice_by_braces(code, "dart", DART_RULES, 0, {}) + args_by_name = {b["name"]: b.get("args") for b in blocks} + assert args_by_name.get("pan") == 0, args_by_name + assert args_by_name.get("scale") == 0, args_by_name + assert args_by_name.get("operator==") == 1, args_by_name + assert args_by_name.get("operator+") == 1, args_by_name + assert args_by_name.get("operator[]") == 1, args_by_name + assert args_by_name.get("move") == 2, args_by_name # normal method unaffected + + def test_dart_slicer_bug_5_closure_invocation(): # Regression case for GitHub issue #1624: closure-arguments in calls were wrongly identified as functions. from gitgalaxy.core.detector import StructuralExtractor @@ -252,15 +289,7 @@ def test_dart_slicer_bug_5_closure_invocation(): splicer = StructuralExtractor("dart", LANGUAGE_DEFINITIONS) # empty-args closure invocation shape - code1 = ( - "class Foo {\n" - " void nextMethod() {\n" - " setState(() {\n" - " x = 1;\n" - " });\n" - " }\n" - "}\n" - ) + code1 = "class Foo {\n void nextMethod() {\n setState(() {\n x = 1;\n });\n }\n}\n" blocks, _ = splicer._slice_by_braces(code1, "dart", DART_RULES, 0, {}) names = [b["name"] for b in blocks] assert "setState" not in names, "Bug 5: Should exclude empty-args closure invocation" @@ -283,13 +312,7 @@ def test_dart_slicer_bug_5_closure_invocation(): assert "run" in names # No regression: named-parameter constructor must still be found - code3 = ( - "class Baz {\n" - " const Baz.raw({required this.a}) : b = a;\n" - " void foo(int a, {int x = 1}) {\n" - " }\n" - "}\n" - ) + code3 = "class Baz {\n const Baz.raw({required this.a}) : b = a;\n void foo(int a, {int x = 1}) {\n }\n}\n" blocks, _ = splicer._slice_by_braces(code3, "dart", DART_RULES, 0, {}) names = [b["name"] for b in blocks] assert "Baz.raw" in names, "No regression: named-parameter bodyless constructor must still be found" @@ -307,12 +330,24 @@ def test_dart_slicer_bug_5_closure_invocation(): ("TargetFunc({required int a, String b = 'default'}) {", "({required int a, String b = 'default'})"), ("TargetFunc([int a = 1, int b = 2]) {", "([int a = 1, int b = 2])"), ("TargetFunc([List x = const [1, 2, 3]]) {", "([List x = const [1, 2, 3]])"), - ("TargetFunc({Map config = const {'key': 'value'}}) {", "({Map config = const {'key': 'value'}})",), - ("TargetFunc(Map>> crazyNested) {", "(Map>> crazyNested)"), - ("TargetFunc(void Function(int, String) cb, {required bool Function() test}) {", "(void Function(int, String) cb, {required bool Function() test})"), + ( + "TargetFunc({Map config = const {'key': 'value'}}) {", + "({Map config = const {'key': 'value'}})", + ), + ( + "TargetFunc(Map>> crazyNested) {", + "(Map>> crazyNested)", + ), + ( + "TargetFunc(void Function(int, String) cb, {required bool Function() test}) {", + "(void Function(int, String) cb, {required bool Function() test})", + ), ("TargetFunc((int, String) recordArg) {", "((int, String) recordArg)"), ("TargetFunc({({int x, int y}) point}) {", "({({int x, int y}) point})"), - ("TargetFunc(\n int a,\n {\n required String b,\n }\n) {", "(\n int a,\n {\n required String b,\n }\n)"), + ( + "TargetFunc(\n int a,\n {\n required String b,\n }\n) {", + "(\n int a,\n {\n required String b,\n }\n)", + ), ("TargetFunc( int a , \n String b ) {", "( int a , \n String b )"), ], "invalid": [ @@ -321,23 +356,26 @@ def test_dart_slicer_bug_5_closure_invocation(): "/* (int a) */", "String str = '(nested(parens))';", ], - "xfail_invalid": [ - ], + "xfail_invalid": [], } + @pytest.mark.parametrize("payload,expected", ARGS_CASES["valid"]) def test_dart_args_valid(payload, expected): assert_valid_match(DART_RULES["args"], payload, expected, "dart.args") + @pytest.mark.parametrize("payload", ARGS_CASES["invalid"]) def test_dart_args_invalid(payload): assert_invalid_no_match(DART_RULES["args"], payload, "dart.args") + @pytest.mark.parametrize("payload", ARGS_CASES["xfail_invalid"]) @pytest.mark.xfail(reason="String/comment lookalikes lack AST block shielding", strict=True) def test_dart_args_xfail_invalid(payload): assert_invalid_no_match(DART_RULES["args"], payload, "dart.args") + # ------------------------------------------------------------------------- # 4. DEPENDENCY CAPTURE RULES # ------------------------------------------------------------------------- @@ -355,7 +393,7 @@ def test_dart_args_xfail_invalid(payload): ("export 'src/internal.dart' show InternalClass;", "src/internal.dart"), ("import \n 'package:multiline/multiline.dart'\n as ml;", "package:multiline/multiline.dart"), ("import \t 'package:tab/tab.dart';", "package:tab/tab.dart"), - ("import \"package:double_quotes/double_quotes.dart\";", "package:double_quotes/double_quotes.dart"), + ('import "package:double_quotes/double_quotes.dart";', "package:double_quotes/double_quotes.dart"), ("part 'foo.g.dart';", "foo.g.dart"), ("part of 'foo.dart';", "foo.dart"), ("part of my_library_name;", "my_library_name"), @@ -371,14 +409,17 @@ def test_dart_args_xfail_invalid(payload): ], } + @pytest.mark.parametrize("payload,expected", DEPENDENCY_CAPTURE_CASES["valid"]) def test_dart_dependency_capture_valid(payload, expected): assert_valid_dependency_match(DART_RULES["_dependency_capture"], payload, expected, "dart._dependency_capture") + @pytest.mark.parametrize("payload", DEPENDENCY_CAPTURE_CASES["invalid"]) def test_dart_dependency_capture_invalid(payload): assert_invalid_no_match(DART_RULES["_dependency_capture"], payload, "dart._dependency_capture") + @pytest.mark.parametrize("payload", DEPENDENCY_CAPTURE_CASES["xfail_invalid"]) @pytest.mark.xfail(reason="String/comment lookalikes lack AST block shielding", strict=True) def test_dart_dependency_capture_xfail_invalid(payload): diff --git a/tests/golden_master_audit.json b/tests/golden_master_audit.json index 40043d9ea..869f43a89 100644 --- a/tests/golden_master_audit.json +++ b/tests/golden_master_audit.json @@ -12,8 +12,8 @@ }, "Target Root Name": "data", "Absolute Project Path": "/home/joe/nyx_projects/language-crucible/data", - "Analysis ISO Timestamp": "2026-08-27T16:03:46.400066+00:00", - "Total Scan Duration": "34.02 seconds" + "Analysis ISO Timestamp": "2026-08-27T19:34:34.801325+00:00", + "Total Scan Duration": "34.12 seconds" }, "Source Control Footprint (Immutable Anchor)": { "Active Branch": "HEAD", @@ -310,7 +310,7 @@ "dart": { "files": 7, "loc": 22485, - "impact": 23280.6 + "impact": 23338.5 }, "go": { "files": 46, @@ -2218,7 +2218,7 @@ }, "dart/flutter": { "file_count": 7, - "total_mass": 23280.6, + "total_mass": 23338.5, "avg_exposures": { "cognitive_load": 19.68, "safety_score": 10.54, @@ -59568,7 +59568,7 @@ } }, "dart/flutter": { - "Directory Group Magnitude": 23280.6, + "Directory Group Magnitude": 23338.5, "File Count": 7, "Ecosystem Fingerprint (Archetypes)": { "Unclassified": "100.0%" @@ -62260,9 +62260,9 @@ "Identity Proof": "Single Indicator (Ext: .dart)" }, "2. Topological Coordinates": { - "X": -2167.36, + "X": -2167.35, "Y": 55.64, - "Z": -3177.02 + "Z": -3177.03 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -62274,7 +62274,7 @@ "Total LOC": 2607, "Coding LOC": 1754, "Documentation LOC": 621, - "Structural Magnitude": 4668.68, + "Structural Magnitude": 4664.68, "Control Flow Ratio": "84.0%", "Popularity Rank": 4, "Raw Churn Frequency": 0.0, @@ -63268,26 +63268,6 @@ "Start Line": 203, "End Line": 203 }, - { - "Function Name": "original", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 748, - "End Line": 749 - }, - { - "Function Name": "transform", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 751, - "End Line": 752 - }, { "Function Name": "respond", "Structural Impact": 1.5, @@ -63298,86 +63278,6 @@ "Start Line": 1822, "End Line": 1822 }, - { - "Function Name": "scrollDelta", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 1, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 1827, - "End Line": 1827 - }, - { - "Function Name": "scale", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 1, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 2042, - "End Line": 2042 - }, - { - "Function Name": "pan", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 1, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 2223, - "End Line": 2223 - }, - { - "Function Name": "localPan", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 1, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 2226, - "End Line": 2226 - }, - { - "Function Name": "panDelta", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 1, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 2229, - "End Line": 2229 - }, - { - "Function Name": "localPanDelta", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 1, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 2232, - "End Line": 2232 - }, - { - "Function Name": "scale", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 1, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 2235, - "End Line": 2235 - }, - { - "Function Name": "rotation", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 1, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 2238, - "End Line": 2238 - }, { "Function Name": "localPosition", "Structural Impact": 1.1, @@ -63418,6 +63318,26 @@ "Start Line": 734, "End Line": 736 }, + { + "Function Name": "original", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 748, + "End Line": 749 + }, + { + "Function Name": "transform", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 751, + "End Line": 752 + }, { "Function Name": "embedderId", "Structural Impact": 1.1, @@ -63678,6 +63598,16 @@ "Start Line": 840, "End Line": 841 }, + { + "Function Name": "scrollDelta", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 1, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 1827, + "End Line": 1827 + }, { "Function Name": "scrollDelta", "Structural Impact": 1.1, @@ -63688,6 +63618,16 @@ "Start Line": 1930, "End Line": 1931 }, + { + "Function Name": "scale", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 1, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 2042, + "End Line": 2042 + }, { "Function Name": "scale", "Structural Impact": 1.1, @@ -63698,6 +63638,66 @@ "Start Line": 2130, "End Line": 2131 }, + { + "Function Name": "pan", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 1, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 2223, + "End Line": 2223 + }, + { + "Function Name": "localPan", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 1, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 2226, + "End Line": 2226 + }, + { + "Function Name": "panDelta", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 1, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 2229, + "End Line": 2229 + }, + { + "Function Name": "localPanDelta", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 1, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 2232, + "End Line": 2232 + }, + { + "Function Name": "scale", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 1, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 2235, + "End Line": 2235 + }, + { + "Function Name": "rotation", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 1, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 2238, + "End Line": 2238 + }, { "Function Name": "localPan", "Structural Impact": 1.1, @@ -63885,8 +63885,8 @@ }, "2. Topological Coordinates": { "X": -2020.56, - "Y": 44.93, - "Z": -2869.48 + "Y": 44.92, + "Z": -2869.47 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -63898,7 +63898,7 @@ "Total LOC": 7456, "Coding LOC": 3380, "Documentation LOC": 3657, - "Structural Magnitude": 2016.3, + "Structural Magnitude": 2017.0, "Control Flow Ratio": "68.8%", "Popularity Rank": 3, "Raw Churn Frequency": 0.0, @@ -64612,6 +64612,16 @@ "Start Line": 6194, "End Line": 6200 }, + { + "Function Name": "operator==", + "Structural Impact": 6.0, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 3, + "Input Parameters": 1, + "Control Flow Ratio": "60.0%", + "Start Line": 7427, + "End Line": 7433 + }, { "Function Name": "doesDependOnInheritedElement", "Structural Impact": 5.9, @@ -64822,6 +64832,26 @@ "Start Line": 5699, "End Line": 5707 }, + { + "Function Name": "operator==", + "Structural Impact": 4.6, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 2, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 96, + "End Line": 102 + }, + { + "Function Name": "operator==", + "Structural Impact": 4.6, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 2, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 252, + "End Line": 258 + }, { "Function Name": "_debugConcreteSubtype", "Structural Impact": 4.6, @@ -64902,16 +64932,6 @@ "Start Line": 6258, "End Line": 6264 }, - { - "Function Name": "operator==", - "Structural Impact": 4.3, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 3, - "Input Parameters": 0, - "Control Flow Ratio": "60.0%", - "Start Line": 7427, - "End Line": 7433 - }, { "Function Name": "getInheritedWidgetOfExactType", "Structural Impact": 4.2, @@ -65142,16 +65162,6 @@ "Start Line": 6181, "End Line": 6191 }, - { - "Function Name": "operator==", - "Structural Impact": 3.4, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 2, - "Input Parameters": 0, - "Control Flow Ratio": "50.0%", - "Start Line": 96, - "End Line": 102 - }, { "Function Name": "toString", "Structural Impact": 3.4, @@ -65162,16 +65172,6 @@ "Start Line": 212, "End Line": 219 }, - { - "Function Name": "operator==", - "Structural Impact": 3.4, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 2, - "Input Parameters": 0, - "Control Flow Ratio": "50.0%", - "Start Line": 252, - "End Line": 258 - }, { "Function Name": "_debugCheckForCycles", "Structural Impact": 3.4, @@ -65372,26 +65372,6 @@ "Start Line": 165, "End Line": 165 }, - { - "Function Name": "owner", - "Structural Impact": 2.9, - "Lines of Code (LOC)": 1, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "100.0%", - "Start Line": 2312, - "End Line": 2312 - }, - { - "Function Name": "size", - "Structural Impact": 2.9, - "Lines of Code (LOC)": 1, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "100.0%", - "Start Line": 2387, - "End Line": 2387 - }, { "Function Name": "debugExpectsRenderObjectForSlot", "Structural Impact": 2.9, @@ -65602,6 +65582,16 @@ "Start Line": 179, "End Line": 179 }, + { + "Function Name": "owner", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 1, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "100.0%", + "Start Line": 2312, + "End Line": 2312 + }, { "Function Name": "findRenderObject", "Structural Impact": 2.0, @@ -65612,6 +65602,16 @@ "Start Line": 2366, "End Line": 2366 }, + { + "Function Name": "size", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 1, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "100.0%", + "Start Line": 2387, + "End Line": 2387 + }, { "Function Name": "getInheritedWidgetOfExactType", "Structural Impact": 2.0, @@ -66172,16 +66172,6 @@ "Start Line": 1460, "End Line": 1461 }, - { - "Function Name": "debugTypicalAncestorWidgetClass", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 1, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 1632, - "End Line": 1632 - }, { "Function Name": "applyParentData", "Structural Impact": 1.5, @@ -66232,36 +66222,6 @@ "Start Line": 1941, "End Line": 1941 }, - { - "Function Name": "widget", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 1, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 2308, - "End Line": 2308 - }, - { - "Function Name": "mounted", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 1, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 2324, - "End Line": 2324 - }, - { - "Function Name": "debugDoingBuild", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 1, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 2340, - "End Line": 2340 - }, { "Function Name": "visitAncestorElements", "Structural Impact": 1.5, @@ -66882,6 +66842,16 @@ "Start Line": 1592, "End Line": 1593 }, + { + "Function Name": "debugTypicalAncestorWidgetClass", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 1, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 1632, + "End Line": 1632 + }, { "Function Name": "debugTypicalAncestorWidgetDescription", "Structural Impact": 1.1, @@ -66952,6 +66922,36 @@ "Start Line": 2050, "End Line": 2051 }, + { + "Function Name": "widget", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 1, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 2308, + "End Line": 2308 + }, + { + "Function Name": "mounted", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 1, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 2324, + "End Line": 2324 + }, + { + "Function Name": "debugDoingBuild", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 1, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 2340, + "End Line": 2340 + }, { "Function Name": "_debugStateLocked", "Structural Impact": 1.1, @@ -67283,9 +67283,9 @@ "Identity Proof": "Single Indicator (Ext: .dart)" }, "2. Topological Coordinates": { - "X": -1306.92, + "X": -1306.93, "Y": 186.37, - "Z": -3668.76 + "Z": -3668.75 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -67297,7 +67297,7 @@ "Total LOC": 6451, "Coding LOC": 3075, "Documentation LOC": 2965, - "Structural Magnitude": 2054.6, + "Structural Magnitude": 2053.5, "Control Flow Ratio": "70.1%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, @@ -69461,6 +69461,16 @@ "Start Line": 3660, "End Line": 3663 }, + { + "Function Name": "operator[]", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 3697, + "End Line": 3699 + }, { "Function Name": "_userGesturesInProgress", "Structural Impact": 1.6, @@ -69511,36 +69521,6 @@ "Start Line": 747, "End Line": 748 }, - { - "Function Name": "route", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 1, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 903, - "End Line": 903 - }, - { - "Function Name": "isWaitingForEnteringDecision", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 1, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 910, - "End Line": 910 - }, - { - "Function Name": "isWaitingForExitingDecision", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 1, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 917, - "End Line": 917 - }, { "Function Name": "markForPop", "Structural Impact": 1.5, @@ -69611,16 +69591,6 @@ "Start Line": 5964, "End Line": 5964 }, - { - "Function Name": "restorationScopeId", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 1, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 5989, - "End Line": 5989 - }, { "Function Name": "createRoute", "Structural Impact": 1.5, @@ -69841,6 +69811,36 @@ "Start Line": 816, "End Line": 816 }, + { + "Function Name": "route", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 1, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 903, + "End Line": 903 + }, + { + "Function Name": "isWaitingForEnteringDecision", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 1, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 910, + "End Line": 910 + }, + { + "Function Name": "isWaitingForExitingDecision", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 1, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 917, + "End Line": 917 + }, { "Function Name": "markForPush", "Structural Impact": 1.1, @@ -69951,16 +69951,6 @@ "Start Line": 3589, "End Line": 3589 }, - { - "Function Name": "operator[]", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 3697, - "End Line": 3699 - }, { "Function Name": "_usingPagesAPI", "Structural Impact": 1.1, @@ -70001,6 +69991,16 @@ "Start Line": 5816, "End Line": 5816 }, + { + "Function Name": "restorationScopeId", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 1, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 5989, + "End Line": 5989 + }, { "Function Name": "isRestorable", "Structural Impact": 1.1, @@ -70194,7 +70194,7 @@ "Identity Proof": "Single Indicator (Ext: .dart)" }, "2. Topological Coordinates": { - "X": -2393.44, + "X": -2393.43, "Y": 79.9, "Z": -3562.89 }, @@ -70208,7 +70208,7 @@ "Total LOC": 6760, "Coding LOC": 3910, "Documentation LOC": 2382, - "Structural Magnitude": 2382.9, + "Structural Magnitude": 2382.4, "Control Flow Ratio": "75.5%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, @@ -70762,6 +70762,16 @@ "Start Line": 3375, "End Line": 3395 }, + { + "Function Name": "operator==", + "Structural Impact": 8.9, + "Lines of Code (LOC)": 9, + "Control Flow Branches": 5, + "Input Parameters": 1, + "Control Flow Ratio": "83.3%", + "Start Line": 5301, + "End Line": 5309 + }, { "Function Name": "markNeedsBuild", "Structural Impact": 8.9, @@ -70932,16 +70942,6 @@ "Start Line": 1214, "End Line": 1231 }, - { - "Function Name": "operator==", - "Structural Impact": 6.5, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 5, - "Input Parameters": 0, - "Control Flow Ratio": "83.3%", - "Start Line": 5301, - "End Line": 5309 - }, { "Function Name": "isBlockingPreviousSibling", "Structural Impact": 6.2, @@ -71692,16 +71692,6 @@ "Start Line": 3739, "End Line": 3739 }, - { - "Function Name": "configToMergeUp", - "Structural Impact": 2.9, - "Lines of Code (LOC)": 1, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "100.0%", - "Start Line": 5420, - "End Line": 5420 - }, { "Function Name": "_SemanticsGeometry", "Structural Impact": 2.8, @@ -72282,6 +72272,16 @@ "Start Line": 4897, "End Line": 4897 }, + { + "Function Name": "configToMergeUp", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 1, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "100.0%", + "Start Line": 5420, + "End Line": 5420 + }, { "Function Name": "isVisible", "Structural Impact": 2.0, @@ -72442,6 +72442,16 @@ "Start Line": 303, "End Line": 308 }, + { + "Function Name": "debugOutstandingSemanticsHandles", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 1372, + "End Line": 1377 + }, { "Function Name": "debugFillProperties", "Structural Impact": 1.7, @@ -72602,36 +72612,6 @@ "Start Line": 6585, "End Line": 6587 }, - { - "Function Name": "isTight", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 1, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 908, - "End Line": 908 - }, - { - "Function Name": "isNormalized", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 1, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 911, - "End Line": 911 - }, - { - "Function Name": "semanticsEnabled", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 1, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 1845, - "End Line": 1845 - }, { "Function Name": "visitChildren", "Structural Impact": 1.5, @@ -72642,26 +72622,6 @@ "Start Line": 2202, "End Line": 2202 }, - { - "Function Name": "paintBounds", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 1, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 3579, - "End Line": 3579 - }, - { - "Function Name": "semanticBounds", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 1, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 3850, - "End Line": 3850 - }, { "Function Name": "toString", "Structural Impact": 1.5, @@ -72682,16 +72642,6 @@ "Start Line": 5340, "End Line": 5340 }, - { - "Function Name": "owner", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 1, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 5422, - "End Line": 5422 - }, { "Function Name": "markSiblingConfigurationConflict", "Structural Impact": 1.5, @@ -72822,16 +72772,6 @@ "Start Line": 6344, "End Line": 6352 }, - { - "Function Name": "debugOutstandingSemanticsHandles", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 1372, - "End Line": 1377 - }, { "Function Name": "runLayoutCallback", "Structural Impact": 1.3, @@ -72962,6 +72902,26 @@ "Start Line": 905, "End Line": 905 }, + { + "Function Name": "isTight", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 1, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 908, + "End Line": 908 + }, + { + "Function Name": "isNormalized", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 1, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 911, + "End Line": 911 + }, { "Function Name": "nodesNeedingLayout", "Structural Impact": 1.1, @@ -73002,6 +72962,16 @@ "Start Line": 1283, "End Line": 1283 }, + { + "Function Name": "semanticsEnabled", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 1, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 1845, + "End Line": 1845 + }, { "Function Name": "requestVisualUpdate", "Structural Impact": 1.1, @@ -73162,6 +73132,26 @@ "Start Line": 3075, "End Line": 3076 }, + { + "Function Name": "paintBounds", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 1, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 3579, + "End Line": 3579 + }, + { + "Function Name": "semanticBounds", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 1, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 3850, + "End Line": 3850 + }, { "Function Name": "debugDescribeChildren", "Structural Impact": 1.1, @@ -73242,6 +73232,16 @@ "Start Line": 4830, "End Line": 4830 }, + { + "Function Name": "owner", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 1, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 5422, + "End Line": 5422 + }, { "Function Name": "owner", "Structural Impact": 1.1, @@ -73393,9 +73393,9 @@ "Identity Proof": "Single Indicator (Ext: .dart)" }, "2. Topological Coordinates": { - "X": -1468.04, - "Y": 106.59, - "Z": -3106.11 + "X": -1467.95, + "Y": 106.58, + "Z": -3106.0 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -73407,7 +73407,7 @@ "Total LOC": 7176, "Coding LOC": 3893, "Documentation LOC": 2658, - "Structural Magnitude": 2802.06, + "Structural Magnitude": 2826.26, "Control Flow Ratio": "70.3%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, @@ -73419,7 +73419,7 @@ "Cognitive Load Exposure": "25.65%", "Error & Exception Exposure": "13.06%", "Tech Debt Exposure": "99.58%", - "Testing Exposure": "2.51%", + "Testing Exposure": "2.52%", "API Exposure": "0.18%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "60.24%", @@ -73491,6 +73491,16 @@ "Start Line": 1038, "End Line": 1102 }, + { + "Function Name": "operator==", + "Structural Impact": 54.3, + "Lines of Code (LOC)": 40, + "Control Flow Branches": 36, + "Input Parameters": 1, + "Control Flow Ratio": "97.3%", + "Start Line": 1443, + "End Line": 1482 + }, { "Function Name": "_toBitMask", "Structural Impact": 50.1, @@ -73531,16 +73541,6 @@ "Start Line": 3316, "End Line": 3346 }, - { - "Function Name": "operator==", - "Structural Impact": 39.0, - "Lines of Code (LOC)": 40, - "Control Flow Branches": 36, - "Input Parameters": 0, - "Control Flow Ratio": "97.3%", - "Start Line": 1443, - "End Line": 1482 - }, { "Function Name": "isCompatibleWith", "Structural Impact": 37.9, @@ -73881,6 +73881,16 @@ "Start Line": 316, "End Line": 321 }, + { + "Function Name": "operator+", + "Structural Impact": 8.3, + "Lines of Code (LOC)": 24, + "Control Flow Branches": 4, + "Input Parameters": 1, + "Control Flow Ratio": "57.1%", + "Start Line": 837, + "End Line": 860 + }, { "Function Name": "validateRadioGroupChildren", "Structural Impact": 8.2, @@ -73941,6 +73951,16 @@ "Start Line": 454, "End Line": 466 }, + { + "Function Name": "operator==", + "Structural Impact": 7.6, + "Lines of Code (LOC)": 10, + "Control Flow Branches": 4, + "Input Parameters": 1, + "Control Flow Ratio": "66.7%", + "Start Line": 753, + "End Line": 762 + }, { "Function Name": "_visitDescendants", "Structural Impact": 7.6, @@ -74061,16 +74081,6 @@ "Start Line": 283, "End Line": 292 }, - { - "Function Name": "operator+", - "Structural Impact": 6.2, - "Lines of Code (LOC)": 24, - "Control Flow Branches": 4, - "Input Parameters": 0, - "Control Flow Ratio": "57.1%", - "Start Line": 837, - "End Line": 860 - }, { "Function Name": "_tristateFromBoolOrNull", "Structural Impact": 6.2, @@ -74091,6 +74101,16 @@ "Start Line": 528, "End Line": 536 }, + { + "Function Name": "operator==", + "Structural Impact": 6.1, + "Lines of Code (LOC)": 9, + "Control Flow Branches": 3, + "Input Parameters": 1, + "Control Flow Ratio": "60.0%", + "Start Line": 1596, + "End Line": 1604 + }, { "Function Name": "visitChildren", "Structural Impact": 6.1, @@ -74121,6 +74141,16 @@ "Start Line": 5618, "End Line": 5626 }, + { + "Function Name": "operator==", + "Structural Impact": 6.0, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 3, + "Input Parameters": 1, + "Control Flow Ratio": "75.0%", + "Start Line": 863, + "End Line": 869 + }, { "Function Name": "isInvisible", "Structural Impact": 6.0, @@ -74171,16 +74201,6 @@ "Start Line": 4449, "End Line": 4463 }, - { - "Function Name": "operator==", - "Structural Impact": 5.5, - "Lines of Code (LOC)": 10, - "Control Flow Branches": 4, - "Input Parameters": 0, - "Control Flow Ratio": "66.7%", - "Start Line": 753, - "End Line": 762 - }, { "Function Name": "addPart", "Structural Impact": 5.4, @@ -74481,16 +74501,6 @@ "Start Line": 6384, "End Line": 6391 }, - { - "Function Name": "operator==", - "Structural Impact": 4.5, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 3, - "Input Parameters": 0, - "Control Flow Ratio": "60.0%", - "Start Line": 1596, - "End Line": 1604 - }, { "Function Name": "addTagForChildren", "Structural Impact": 4.4, @@ -74511,16 +74521,6 @@ "Start Line": 204, "End Line": 205 }, - { - "Function Name": "operator==", - "Structural Impact": 4.3, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 3, - "Input Parameters": 0, - "Control Flow Ratio": "75.0%", - "Start Line": 863, - "End Line": 869 - }, { "Function Name": "isInteresting", "Structural Impact": 4.2, @@ -74751,6 +74751,16 @@ "Start Line": 6266, "End Line": 6267 }, + { + "Function Name": "isFocusable", + "Structural Impact": 3.1, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 6301, + "End Line": 6305 + }, { "Function Name": "textSelection", "Structural Impact": 3.1, @@ -75131,16 +75141,6 @@ "Start Line": 2671, "End Line": 2738 }, - { - "Function Name": "isFocusable", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "50.0%", - "Start Line": 6301, - "End Line": 6305 - }, { "Function Name": "_redepthChildren", "Structural Impact": 2.1, @@ -76091,6 +76091,16 @@ "Start Line": 6337, "End Line": 6343 }, + { + "Function Name": "flags", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 1105, + "End Line": 1109 + }, { "Function Name": "hasFlag", "Structural Impact": 1.7, @@ -76641,16 +76651,6 @@ "Start Line": 874, "End Line": 877 }, - { - "Function Name": "flags", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 1105, - "End Line": 1109 - }, { "Function Name": "_generateNewId", "Structural Impact": 1.2, @@ -77666,7 +77666,7 @@ "Total LOC": 3490, "Coding LOC": 2305, "Documentation LOC": 985, - "Structural Magnitude": 6438.8, + "Structural Magnitude": 6477.4, "Control Flow Ratio": "85.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, @@ -77712,10 +77712,10 @@ }, { "Function Name": "operator==", - "Structural Impact": 89.9, + "Structural Impact": 125.1, "Lines of Code (LOC)": 98, "Control Flow Branches": 84, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "97.7%", "Start Line": 2089, "End Line": 2186 @@ -77800,6 +77800,16 @@ "Start Line": 3129, "End Line": 3139 }, + { + "Function Name": "operator==", + "Structural Impact": 6.0, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 3, + "Input Parameters": 1, + "Control Flow Ratio": "60.0%", + "Start Line": 3348, + "End Line": 3354 + }, { "Function Name": "MaterialBasedCupertinoThemeData._", "Structural Impact": 5.9, @@ -77830,6 +77840,16 @@ "Start Line": 3072, "End Line": 3080 }, + { + "Function Name": "operator==", + "Structural Impact": 4.6, + "Lines of Code (LOC)": 8, + "Control Flow Branches": 2, + "Input Parameters": 1, + "Control Flow Ratio": "66.7%", + "Start Line": 3098, + "End Line": 3105 + }, { "Function Name": "MaterialBasedCupertinoThemeData", "Structural Impact": 4.5, @@ -77850,16 +77870,6 @@ "Start Line": 3317, "End Line": 3325 }, - { - "Function Name": "operator==", - "Structural Impact": 4.3, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 3, - "Input Parameters": 0, - "Control Flow Ratio": "60.0%", - "Start Line": 3348, - "End Line": 3354 - }, { "Function Name": "estimateBrightnessForColor", "Structural Impact": 3.6, @@ -77890,16 +77900,6 @@ "Start Line": 2188, "End Line": 2288 }, - { - "Function Name": "operator==", - "Structural Impact": 3.4, - "Lines of Code (LOC)": 8, - "Control Flow Branches": 2, - "Input Parameters": 0, - "Control Flow Ratio": "66.7%", - "Start Line": 3098, - "End Line": 3105 - }, { "Function Name": "_themeExtensionIterableToMap", "Structural Impact": 3.3, @@ -78070,6 +78070,16 @@ "Start Line": 3088, "End Line": 3088 }, + { + "Function Name": "buttonBarTheme", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 1460, + "End Line": 1464 + }, { "Function Name": "debugFillProperties", "Structural Impact": 1.7, @@ -78100,16 +78110,6 @@ "Start Line": 3307, "End Line": 3314 }, - { - "Function Name": "buttonBarTheme", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 1460, - "End Line": 1464 - }, { "Function Name": "toStringShort", "Structural Impact": 1.2, diff --git a/tests/golden_master_zero_dep_audit.json b/tests/golden_master_zero_dep_audit.json index ef22889eb..e3802a2a6 100644 --- a/tests/golden_master_zero_dep_audit.json +++ b/tests/golden_master_zero_dep_audit.json @@ -12,8 +12,8 @@ }, "Target Root Name": "data", "Absolute Project Path": "/home/joe/nyx_projects/language-crucible/data", - "Analysis ISO Timestamp": "2026-08-27T16:05:33.908644+00:00", - "Total Scan Duration": "32.18 seconds" + "Analysis ISO Timestamp": "2026-08-27T19:35:22.042189+00:00", + "Total Scan Duration": "32.11 seconds" }, "Source Control Footprint (Immutable Anchor)": { "Active Branch": "HEAD", @@ -310,7 +310,7 @@ "dart": { "files": 7, "loc": 22485, - "impact": 23280.6 + "impact": 23338.5 }, "go": { "files": 46, @@ -2218,7 +2218,7 @@ }, "dart/flutter": { "file_count": 7, - "total_mass": 23280.6, + "total_mass": 23338.5, "avg_exposures": { "cognitive_load": 19.68, "safety_score": 10.54, @@ -59568,7 +59568,7 @@ } }, "dart/flutter": { - "Directory Group Magnitude": 23280.6, + "Directory Group Magnitude": 23338.5, "File Count": 7, "Ecosystem Fingerprint (Archetypes)": { "Unclassified": "100.0%" @@ -62260,9 +62260,9 @@ "Identity Proof": "Single Indicator (Ext: .dart)" }, "2. Topological Coordinates": { - "X": -2167.36, + "X": -2167.35, "Y": 55.64, - "Z": -3177.02 + "Z": -3177.03 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -62274,7 +62274,7 @@ "Total LOC": 2607, "Coding LOC": 1754, "Documentation LOC": 621, - "Structural Magnitude": 4668.68, + "Structural Magnitude": 4664.68, "Control Flow Ratio": "84.0%", "Popularity Rank": 4, "Raw Churn Frequency": 0.0, @@ -63268,26 +63268,6 @@ "Start Line": 203, "End Line": 203 }, - { - "Function Name": "original", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 748, - "End Line": 749 - }, - { - "Function Name": "transform", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 751, - "End Line": 752 - }, { "Function Name": "respond", "Structural Impact": 1.5, @@ -63298,86 +63278,6 @@ "Start Line": 1822, "End Line": 1822 }, - { - "Function Name": "scrollDelta", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 1, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 1827, - "End Line": 1827 - }, - { - "Function Name": "scale", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 1, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 2042, - "End Line": 2042 - }, - { - "Function Name": "pan", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 1, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 2223, - "End Line": 2223 - }, - { - "Function Name": "localPan", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 1, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 2226, - "End Line": 2226 - }, - { - "Function Name": "panDelta", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 1, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 2229, - "End Line": 2229 - }, - { - "Function Name": "localPanDelta", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 1, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 2232, - "End Line": 2232 - }, - { - "Function Name": "scale", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 1, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 2235, - "End Line": 2235 - }, - { - "Function Name": "rotation", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 1, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 2238, - "End Line": 2238 - }, { "Function Name": "localPosition", "Structural Impact": 1.1, @@ -63418,6 +63318,26 @@ "Start Line": 734, "End Line": 736 }, + { + "Function Name": "original", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 748, + "End Line": 749 + }, + { + "Function Name": "transform", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 751, + "End Line": 752 + }, { "Function Name": "embedderId", "Structural Impact": 1.1, @@ -63678,6 +63598,16 @@ "Start Line": 840, "End Line": 841 }, + { + "Function Name": "scrollDelta", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 1, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 1827, + "End Line": 1827 + }, { "Function Name": "scrollDelta", "Structural Impact": 1.1, @@ -63688,6 +63618,16 @@ "Start Line": 1930, "End Line": 1931 }, + { + "Function Name": "scale", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 1, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 2042, + "End Line": 2042 + }, { "Function Name": "scale", "Structural Impact": 1.1, @@ -63698,6 +63638,66 @@ "Start Line": 2130, "End Line": 2131 }, + { + "Function Name": "pan", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 1, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 2223, + "End Line": 2223 + }, + { + "Function Name": "localPan", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 1, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 2226, + "End Line": 2226 + }, + { + "Function Name": "panDelta", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 1, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 2229, + "End Line": 2229 + }, + { + "Function Name": "localPanDelta", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 1, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 2232, + "End Line": 2232 + }, + { + "Function Name": "scale", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 1, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 2235, + "End Line": 2235 + }, + { + "Function Name": "rotation", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 1, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 2238, + "End Line": 2238 + }, { "Function Name": "localPan", "Structural Impact": 1.1, @@ -63885,8 +63885,8 @@ }, "2. Topological Coordinates": { "X": -2020.56, - "Y": 44.93, - "Z": -2869.48 + "Y": 44.92, + "Z": -2869.47 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -63898,7 +63898,7 @@ "Total LOC": 7456, "Coding LOC": 3380, "Documentation LOC": 3657, - "Structural Magnitude": 2016.3, + "Structural Magnitude": 2017.0, "Control Flow Ratio": "68.8%", "Popularity Rank": 4, "Raw Churn Frequency": 0.0, @@ -64612,6 +64612,16 @@ "Start Line": 6194, "End Line": 6200 }, + { + "Function Name": "operator==", + "Structural Impact": 6.0, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 3, + "Input Parameters": 1, + "Control Flow Ratio": "60.0%", + "Start Line": 7427, + "End Line": 7433 + }, { "Function Name": "doesDependOnInheritedElement", "Structural Impact": 5.9, @@ -64822,6 +64832,26 @@ "Start Line": 5699, "End Line": 5707 }, + { + "Function Name": "operator==", + "Structural Impact": 4.6, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 2, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 96, + "End Line": 102 + }, + { + "Function Name": "operator==", + "Structural Impact": 4.6, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 2, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 252, + "End Line": 258 + }, { "Function Name": "_debugConcreteSubtype", "Structural Impact": 4.6, @@ -64902,16 +64932,6 @@ "Start Line": 6258, "End Line": 6264 }, - { - "Function Name": "operator==", - "Structural Impact": 4.3, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 3, - "Input Parameters": 0, - "Control Flow Ratio": "60.0%", - "Start Line": 7427, - "End Line": 7433 - }, { "Function Name": "getInheritedWidgetOfExactType", "Structural Impact": 4.2, @@ -65142,16 +65162,6 @@ "Start Line": 6181, "End Line": 6191 }, - { - "Function Name": "operator==", - "Structural Impact": 3.4, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 2, - "Input Parameters": 0, - "Control Flow Ratio": "50.0%", - "Start Line": 96, - "End Line": 102 - }, { "Function Name": "toString", "Structural Impact": 3.4, @@ -65162,16 +65172,6 @@ "Start Line": 212, "End Line": 219 }, - { - "Function Name": "operator==", - "Structural Impact": 3.4, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 2, - "Input Parameters": 0, - "Control Flow Ratio": "50.0%", - "Start Line": 252, - "End Line": 258 - }, { "Function Name": "_debugCheckForCycles", "Structural Impact": 3.4, @@ -65372,26 +65372,6 @@ "Start Line": 165, "End Line": 165 }, - { - "Function Name": "owner", - "Structural Impact": 2.9, - "Lines of Code (LOC)": 1, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "100.0%", - "Start Line": 2312, - "End Line": 2312 - }, - { - "Function Name": "size", - "Structural Impact": 2.9, - "Lines of Code (LOC)": 1, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "100.0%", - "Start Line": 2387, - "End Line": 2387 - }, { "Function Name": "debugExpectsRenderObjectForSlot", "Structural Impact": 2.9, @@ -65602,6 +65582,16 @@ "Start Line": 179, "End Line": 179 }, + { + "Function Name": "owner", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 1, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "100.0%", + "Start Line": 2312, + "End Line": 2312 + }, { "Function Name": "findRenderObject", "Structural Impact": 2.0, @@ -65612,6 +65602,16 @@ "Start Line": 2366, "End Line": 2366 }, + { + "Function Name": "size", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 1, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "100.0%", + "Start Line": 2387, + "End Line": 2387 + }, { "Function Name": "getInheritedWidgetOfExactType", "Structural Impact": 2.0, @@ -66172,16 +66172,6 @@ "Start Line": 1460, "End Line": 1461 }, - { - "Function Name": "debugTypicalAncestorWidgetClass", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 1, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 1632, - "End Line": 1632 - }, { "Function Name": "applyParentData", "Structural Impact": 1.5, @@ -66232,36 +66222,6 @@ "Start Line": 1941, "End Line": 1941 }, - { - "Function Name": "widget", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 1, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 2308, - "End Line": 2308 - }, - { - "Function Name": "mounted", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 1, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 2324, - "End Line": 2324 - }, - { - "Function Name": "debugDoingBuild", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 1, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 2340, - "End Line": 2340 - }, { "Function Name": "visitAncestorElements", "Structural Impact": 1.5, @@ -66882,6 +66842,16 @@ "Start Line": 1592, "End Line": 1593 }, + { + "Function Name": "debugTypicalAncestorWidgetClass", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 1, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 1632, + "End Line": 1632 + }, { "Function Name": "debugTypicalAncestorWidgetDescription", "Structural Impact": 1.1, @@ -66952,6 +66922,36 @@ "Start Line": 2050, "End Line": 2051 }, + { + "Function Name": "widget", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 1, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 2308, + "End Line": 2308 + }, + { + "Function Name": "mounted", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 1, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 2324, + "End Line": 2324 + }, + { + "Function Name": "debugDoingBuild", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 1, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 2340, + "End Line": 2340 + }, { "Function Name": "_debugStateLocked", "Structural Impact": 1.1, @@ -67283,9 +67283,9 @@ "Identity Proof": "Single Indicator (Ext: .dart)" }, "2. Topological Coordinates": { - "X": -1306.92, + "X": -1306.93, "Y": 186.37, - "Z": -3668.76 + "Z": -3668.75 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -67297,7 +67297,7 @@ "Total LOC": 6451, "Coding LOC": 3075, "Documentation LOC": 2965, - "Structural Magnitude": 2054.6, + "Structural Magnitude": 2053.5, "Control Flow Ratio": "70.1%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, @@ -69461,6 +69461,16 @@ "Start Line": 3660, "End Line": 3663 }, + { + "Function Name": "operator[]", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 3697, + "End Line": 3699 + }, { "Function Name": "_userGesturesInProgress", "Structural Impact": 1.6, @@ -69511,36 +69521,6 @@ "Start Line": 747, "End Line": 748 }, - { - "Function Name": "route", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 1, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 903, - "End Line": 903 - }, - { - "Function Name": "isWaitingForEnteringDecision", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 1, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 910, - "End Line": 910 - }, - { - "Function Name": "isWaitingForExitingDecision", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 1, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 917, - "End Line": 917 - }, { "Function Name": "markForPop", "Structural Impact": 1.5, @@ -69611,16 +69591,6 @@ "Start Line": 5964, "End Line": 5964 }, - { - "Function Name": "restorationScopeId", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 1, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 5989, - "End Line": 5989 - }, { "Function Name": "createRoute", "Structural Impact": 1.5, @@ -69841,6 +69811,36 @@ "Start Line": 816, "End Line": 816 }, + { + "Function Name": "route", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 1, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 903, + "End Line": 903 + }, + { + "Function Name": "isWaitingForEnteringDecision", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 1, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 910, + "End Line": 910 + }, + { + "Function Name": "isWaitingForExitingDecision", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 1, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 917, + "End Line": 917 + }, { "Function Name": "markForPush", "Structural Impact": 1.1, @@ -69951,16 +69951,6 @@ "Start Line": 3589, "End Line": 3589 }, - { - "Function Name": "operator[]", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 3697, - "End Line": 3699 - }, { "Function Name": "_usingPagesAPI", "Structural Impact": 1.1, @@ -70001,6 +69991,16 @@ "Start Line": 5816, "End Line": 5816 }, + { + "Function Name": "restorationScopeId", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 1, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 5989, + "End Line": 5989 + }, { "Function Name": "isRestorable", "Structural Impact": 1.1, @@ -70194,7 +70194,7 @@ "Identity Proof": "Single Indicator (Ext: .dart)" }, "2. Topological Coordinates": { - "X": -2393.44, + "X": -2393.43, "Y": 79.9, "Z": -3562.89 }, @@ -70208,7 +70208,7 @@ "Total LOC": 6760, "Coding LOC": 3910, "Documentation LOC": 2382, - "Structural Magnitude": 2382.9, + "Structural Magnitude": 2382.4, "Control Flow Ratio": "75.5%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, @@ -70762,6 +70762,16 @@ "Start Line": 3375, "End Line": 3395 }, + { + "Function Name": "operator==", + "Structural Impact": 8.9, + "Lines of Code (LOC)": 9, + "Control Flow Branches": 5, + "Input Parameters": 1, + "Control Flow Ratio": "83.3%", + "Start Line": 5301, + "End Line": 5309 + }, { "Function Name": "markNeedsBuild", "Structural Impact": 8.9, @@ -70932,16 +70942,6 @@ "Start Line": 1214, "End Line": 1231 }, - { - "Function Name": "operator==", - "Structural Impact": 6.5, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 5, - "Input Parameters": 0, - "Control Flow Ratio": "83.3%", - "Start Line": 5301, - "End Line": 5309 - }, { "Function Name": "isBlockingPreviousSibling", "Structural Impact": 6.2, @@ -71692,16 +71692,6 @@ "Start Line": 3739, "End Line": 3739 }, - { - "Function Name": "configToMergeUp", - "Structural Impact": 2.9, - "Lines of Code (LOC)": 1, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "100.0%", - "Start Line": 5420, - "End Line": 5420 - }, { "Function Name": "_SemanticsGeometry", "Structural Impact": 2.8, @@ -72282,6 +72272,16 @@ "Start Line": 4897, "End Line": 4897 }, + { + "Function Name": "configToMergeUp", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 1, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "100.0%", + "Start Line": 5420, + "End Line": 5420 + }, { "Function Name": "isVisible", "Structural Impact": 2.0, @@ -72442,6 +72442,16 @@ "Start Line": 303, "End Line": 308 }, + { + "Function Name": "debugOutstandingSemanticsHandles", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 1372, + "End Line": 1377 + }, { "Function Name": "debugFillProperties", "Structural Impact": 1.7, @@ -72602,36 +72612,6 @@ "Start Line": 6585, "End Line": 6587 }, - { - "Function Name": "isTight", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 1, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 908, - "End Line": 908 - }, - { - "Function Name": "isNormalized", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 1, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 911, - "End Line": 911 - }, - { - "Function Name": "semanticsEnabled", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 1, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 1845, - "End Line": 1845 - }, { "Function Name": "visitChildren", "Structural Impact": 1.5, @@ -72642,26 +72622,6 @@ "Start Line": 2202, "End Line": 2202 }, - { - "Function Name": "paintBounds", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 1, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 3579, - "End Line": 3579 - }, - { - "Function Name": "semanticBounds", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 1, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 3850, - "End Line": 3850 - }, { "Function Name": "toString", "Structural Impact": 1.5, @@ -72682,16 +72642,6 @@ "Start Line": 5340, "End Line": 5340 }, - { - "Function Name": "owner", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 1, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 5422, - "End Line": 5422 - }, { "Function Name": "markSiblingConfigurationConflict", "Structural Impact": 1.5, @@ -72822,16 +72772,6 @@ "Start Line": 6344, "End Line": 6352 }, - { - "Function Name": "debugOutstandingSemanticsHandles", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 1372, - "End Line": 1377 - }, { "Function Name": "runLayoutCallback", "Structural Impact": 1.3, @@ -72962,6 +72902,26 @@ "Start Line": 905, "End Line": 905 }, + { + "Function Name": "isTight", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 1, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 908, + "End Line": 908 + }, + { + "Function Name": "isNormalized", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 1, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 911, + "End Line": 911 + }, { "Function Name": "nodesNeedingLayout", "Structural Impact": 1.1, @@ -73002,6 +72962,16 @@ "Start Line": 1283, "End Line": 1283 }, + { + "Function Name": "semanticsEnabled", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 1, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 1845, + "End Line": 1845 + }, { "Function Name": "requestVisualUpdate", "Structural Impact": 1.1, @@ -73162,6 +73132,26 @@ "Start Line": 3075, "End Line": 3076 }, + { + "Function Name": "paintBounds", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 1, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 3579, + "End Line": 3579 + }, + { + "Function Name": "semanticBounds", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 1, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 3850, + "End Line": 3850 + }, { "Function Name": "debugDescribeChildren", "Structural Impact": 1.1, @@ -73242,6 +73232,16 @@ "Start Line": 4830, "End Line": 4830 }, + { + "Function Name": "owner", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 1, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 5422, + "End Line": 5422 + }, { "Function Name": "owner", "Structural Impact": 1.1, @@ -73393,9 +73393,9 @@ "Identity Proof": "Single Indicator (Ext: .dart)" }, "2. Topological Coordinates": { - "X": -1468.04, - "Y": 106.59, - "Z": -3106.11 + "X": -1467.95, + "Y": 106.58, + "Z": -3106.0 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -73407,7 +73407,7 @@ "Total LOC": 7176, "Coding LOC": 3893, "Documentation LOC": 2658, - "Structural Magnitude": 2802.06, + "Structural Magnitude": 2826.26, "Control Flow Ratio": "70.3%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, @@ -73419,7 +73419,7 @@ "Cognitive Load Exposure": "25.65%", "Error & Exception Exposure": "13.06%", "Tech Debt Exposure": "99.58%", - "Testing Exposure": "2.51%", + "Testing Exposure": "2.52%", "API Exposure": "0.18%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "60.24%", @@ -73491,6 +73491,16 @@ "Start Line": 1038, "End Line": 1102 }, + { + "Function Name": "operator==", + "Structural Impact": 54.3, + "Lines of Code (LOC)": 40, + "Control Flow Branches": 36, + "Input Parameters": 1, + "Control Flow Ratio": "97.3%", + "Start Line": 1443, + "End Line": 1482 + }, { "Function Name": "_toBitMask", "Structural Impact": 50.1, @@ -73531,16 +73541,6 @@ "Start Line": 3316, "End Line": 3346 }, - { - "Function Name": "operator==", - "Structural Impact": 39.0, - "Lines of Code (LOC)": 40, - "Control Flow Branches": 36, - "Input Parameters": 0, - "Control Flow Ratio": "97.3%", - "Start Line": 1443, - "End Line": 1482 - }, { "Function Name": "isCompatibleWith", "Structural Impact": 37.9, @@ -73881,6 +73881,16 @@ "Start Line": 316, "End Line": 321 }, + { + "Function Name": "operator+", + "Structural Impact": 8.3, + "Lines of Code (LOC)": 24, + "Control Flow Branches": 4, + "Input Parameters": 1, + "Control Flow Ratio": "57.1%", + "Start Line": 837, + "End Line": 860 + }, { "Function Name": "validateRadioGroupChildren", "Structural Impact": 8.2, @@ -73941,6 +73951,16 @@ "Start Line": 454, "End Line": 466 }, + { + "Function Name": "operator==", + "Structural Impact": 7.6, + "Lines of Code (LOC)": 10, + "Control Flow Branches": 4, + "Input Parameters": 1, + "Control Flow Ratio": "66.7%", + "Start Line": 753, + "End Line": 762 + }, { "Function Name": "_visitDescendants", "Structural Impact": 7.6, @@ -74061,16 +74081,6 @@ "Start Line": 283, "End Line": 292 }, - { - "Function Name": "operator+", - "Structural Impact": 6.2, - "Lines of Code (LOC)": 24, - "Control Flow Branches": 4, - "Input Parameters": 0, - "Control Flow Ratio": "57.1%", - "Start Line": 837, - "End Line": 860 - }, { "Function Name": "_tristateFromBoolOrNull", "Structural Impact": 6.2, @@ -74091,6 +74101,16 @@ "Start Line": 528, "End Line": 536 }, + { + "Function Name": "operator==", + "Structural Impact": 6.1, + "Lines of Code (LOC)": 9, + "Control Flow Branches": 3, + "Input Parameters": 1, + "Control Flow Ratio": "60.0%", + "Start Line": 1596, + "End Line": 1604 + }, { "Function Name": "visitChildren", "Structural Impact": 6.1, @@ -74121,6 +74141,16 @@ "Start Line": 5618, "End Line": 5626 }, + { + "Function Name": "operator==", + "Structural Impact": 6.0, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 3, + "Input Parameters": 1, + "Control Flow Ratio": "75.0%", + "Start Line": 863, + "End Line": 869 + }, { "Function Name": "isInvisible", "Structural Impact": 6.0, @@ -74171,16 +74201,6 @@ "Start Line": 4449, "End Line": 4463 }, - { - "Function Name": "operator==", - "Structural Impact": 5.5, - "Lines of Code (LOC)": 10, - "Control Flow Branches": 4, - "Input Parameters": 0, - "Control Flow Ratio": "66.7%", - "Start Line": 753, - "End Line": 762 - }, { "Function Name": "addPart", "Structural Impact": 5.4, @@ -74481,16 +74501,6 @@ "Start Line": 6384, "End Line": 6391 }, - { - "Function Name": "operator==", - "Structural Impact": 4.5, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 3, - "Input Parameters": 0, - "Control Flow Ratio": "60.0%", - "Start Line": 1596, - "End Line": 1604 - }, { "Function Name": "addTagForChildren", "Structural Impact": 4.4, @@ -74511,16 +74521,6 @@ "Start Line": 204, "End Line": 205 }, - { - "Function Name": "operator==", - "Structural Impact": 4.3, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 3, - "Input Parameters": 0, - "Control Flow Ratio": "75.0%", - "Start Line": 863, - "End Line": 869 - }, { "Function Name": "isInteresting", "Structural Impact": 4.2, @@ -74751,6 +74751,16 @@ "Start Line": 6266, "End Line": 6267 }, + { + "Function Name": "isFocusable", + "Structural Impact": 3.1, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 6301, + "End Line": 6305 + }, { "Function Name": "textSelection", "Structural Impact": 3.1, @@ -75131,16 +75141,6 @@ "Start Line": 2671, "End Line": 2738 }, - { - "Function Name": "isFocusable", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "50.0%", - "Start Line": 6301, - "End Line": 6305 - }, { "Function Name": "_redepthChildren", "Structural Impact": 2.1, @@ -76091,6 +76091,16 @@ "Start Line": 6337, "End Line": 6343 }, + { + "Function Name": "flags", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 1105, + "End Line": 1109 + }, { "Function Name": "hasFlag", "Structural Impact": 1.7, @@ -76641,16 +76651,6 @@ "Start Line": 874, "End Line": 877 }, - { - "Function Name": "flags", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 1105, - "End Line": 1109 - }, { "Function Name": "_generateNewId", "Structural Impact": 1.2, @@ -77666,7 +77666,7 @@ "Total LOC": 3490, "Coding LOC": 2305, "Documentation LOC": 985, - "Structural Magnitude": 6438.8, + "Structural Magnitude": 6477.4, "Control Flow Ratio": "85.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, @@ -77712,10 +77712,10 @@ }, { "Function Name": "operator==", - "Structural Impact": 89.9, + "Structural Impact": 125.1, "Lines of Code (LOC)": 98, "Control Flow Branches": 84, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "97.7%", "Start Line": 2089, "End Line": 2186 @@ -77800,6 +77800,16 @@ "Start Line": 3129, "End Line": 3139 }, + { + "Function Name": "operator==", + "Structural Impact": 6.0, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 3, + "Input Parameters": 1, + "Control Flow Ratio": "60.0%", + "Start Line": 3348, + "End Line": 3354 + }, { "Function Name": "MaterialBasedCupertinoThemeData._", "Structural Impact": 5.9, @@ -77830,6 +77840,16 @@ "Start Line": 3072, "End Line": 3080 }, + { + "Function Name": "operator==", + "Structural Impact": 4.6, + "Lines of Code (LOC)": 8, + "Control Flow Branches": 2, + "Input Parameters": 1, + "Control Flow Ratio": "66.7%", + "Start Line": 3098, + "End Line": 3105 + }, { "Function Name": "MaterialBasedCupertinoThemeData", "Structural Impact": 4.5, @@ -77850,16 +77870,6 @@ "Start Line": 3317, "End Line": 3325 }, - { - "Function Name": "operator==", - "Structural Impact": 4.3, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 3, - "Input Parameters": 0, - "Control Flow Ratio": "60.0%", - "Start Line": 3348, - "End Line": 3354 - }, { "Function Name": "estimateBrightnessForColor", "Structural Impact": 3.6, @@ -77890,16 +77900,6 @@ "Start Line": 2188, "End Line": 2288 }, - { - "Function Name": "operator==", - "Structural Impact": 3.4, - "Lines of Code (LOC)": 8, - "Control Flow Branches": 2, - "Input Parameters": 0, - "Control Flow Ratio": "66.7%", - "Start Line": 3098, - "End Line": 3105 - }, { "Function Name": "_themeExtensionIterableToMap", "Structural Impact": 3.3, @@ -78070,6 +78070,16 @@ "Start Line": 3088, "End Line": 3088 }, + { + "Function Name": "buttonBarTheme", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 1460, + "End Line": 1464 + }, { "Function Name": "debugFillProperties", "Structural Impact": 1.7, @@ -78100,16 +78110,6 @@ "Start Line": 3307, "End Line": 3314 }, - { - "Function Name": "buttonBarTheme", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 1460, - "End Line": 1464 - }, { "Function Name": "toStringShort", "Structural Impact": 1.2, diff --git a/tests/tools/tree_sitter_accuracy_audit.py b/tests/tools/tree_sitter_accuracy_audit.py index 74938c6e7..fa8e6652e 100755 --- a/tests/tools/tree_sitter_accuracy_audit.py +++ b/tests/tools/tree_sitter_accuracy_audit.py @@ -863,10 +863,10 @@ def _get_zig_container_name(node: Any, max_hops: int = 6) -> Optional[str]: if child.type == "=": eq_node = child break - + if eq_node and node.start_byte < eq_node.start_byte: return None - + for child in current.children: if child.type == "IDENTIFIER": return child.text.decode("utf8") @@ -1512,7 +1512,23 @@ def _get_param_count(node: Any, lang: str = "") -> int: # #1313: none of these node types expose a "parameters"/"parameter" field either -- same # no-field-at-all shape the C-family branch above already handles, just with different # grammar-specific wrapper/child node names. - if node.type in ("function_signature", "setter_signature", "operator_signature"): + # + # #2309-followup: dart's `constant_constructor_signature` (`const Foo({...})`) and + # `factory_constructor_signature` (`factory Foo(...)`) have the SAME no-"parameters"-field, + # direct-`formal_parameter_list`-child shape as `function_signature` -- but unlike the plain + # `constructor_signature` (which DOES expose a field-tagged "parameters" and so is handled by + # the generic branch above), these two fell through to `return 0`. Every `const`/`factory` + # constructor in the dart corpus -- the dominant Flutter widget-constructor form + # (`const PointerEvent({...})`, `factory ThemeData({...})`) -- measured real=0 against + # GitGalaxy's/tree-sitter's correct count, manufacturing ~30 large false args-mismatches in + # the tri-comparison (`dart/function/args/agree[none]` shape). + if node.type in ( + "function_signature", + "setter_signature", + "operator_signature", + "constant_constructor_signature", + "factory_constructor_signature", + ): # #1339: dart's `function_signature`/`method_signature` have no "parameters" field -- # the param list is an untyped `formal_parameter_list` child wrapping "formal_parameter" # children. `method_signature` itself never resolves a name (see _get_node_name -- it has @@ -1706,9 +1722,7 @@ def _get_param_count_declaration_only(node: Any, lang: str) -> int: # covered `catch` from that blacklist, so `return`-named real methods still fell through to # `real_funcs` and were reported as a false-negative gap for GitGalaxy's intentional, correct # exclusion. -_JS_RESERVED_STATEMENT_KEYWORDS = frozenset( - {"if", "for", "while", "switch", "catch", "else", "do", "return"} -) +_JS_RESERVED_STATEMENT_KEYWORDS = frozenset({"if", "for", "while", "switch", "catch", "else", "do", "return"}) # In addition to keywords, Flow-typed JavaScript causes tree-sitter-javascript to hallucinate # regular function calls and object properties as `method_definition`s during error recovery. @@ -1744,6 +1758,7 @@ def _get_param_count_declaration_only(node: Any, lang: str) -> int: } ) + def _is_cpp_unscoped_enum(node: Any) -> bool: """tree-sitter-cpp's `enum_specifier` node covers BOTH a C++11 scoped enum (`enum class Foo {...}`/`enum struct Foo {...}`) and a plain, unscoped C-style enum (`enum Foo {...}`) -- @@ -1886,10 +1901,10 @@ def _find_blind_spot_ranges(root_node: Any, ts_lang: str) -> list[tuple[int, int ranges = [] def walk(node: Any) -> None: - if (ts_lang == "rust" and node.type in ("macro_definition", "macro_invocation")) or ( - ts_lang == "fortran" and (node.type == "ERROR" or node.type.startswith("preproc_")) - ) or ( - ts_lang == "zig" and node.type == "ERROR" + if ( + (ts_lang == "rust" and node.type in ("macro_definition", "macro_invocation")) + or (ts_lang == "fortran" and (node.type == "ERROR" or node.type.startswith("preproc_"))) + or (ts_lang == "zig" and node.type == "ERROR") ): ranges.append((node.start_point[0] + 1, node.end_point[0] + 1)) @@ -2146,7 +2161,10 @@ def walk(node, is_continuation_clause=False): # not a shape typescript's own grammar ever produces. node.type == "method_definition" and ( - (lang in ("javascript", "typescript") and name in _JS_RESERVED_STATEMENT_KEYWORDS) + ( + lang in ("javascript", "typescript") + and name in _JS_RESERVED_STATEMENT_KEYWORDS + ) or (lang == "javascript" and name in _JS_KNOWN_FLOW_HALLUCINATIONS) ) ) diff --git a/tests/tree_sitter_accuracy_baseline_dart.json b/tests/tree_sitter_accuracy_baseline_dart.json index d424a52c8..2337da143 100644 --- a/tests/tree_sitter_accuracy_baseline_dart.json +++ b/tests/tree_sitter_accuracy_baseline_dart.json @@ -1,6 +1,6 @@ { "args_comparable": 1739, - "args_exact_match": 1633, + "args_exact_match": 1733, "corpus_path": "language-crucible/data/dart", "extra_classes": 0, "extra_functions": 12,