Downloading Google Java Format...
Downloading ktfmt...
--packages-for-branch: running on branch "HEAD".
Running for all packages that have diffs relative to "651c5654beb64093f41afa1c76d44788b0ef635d"
Changed packages: go_router_builder
--packages-for-branch: running on branch "HEAD".
Running for all packages that have diffs relative to "651c5654beb64093f41afa1c76d44788b0ef635d"
Changed packages: go_router_builder
============================================================
|| Running for packages/go_router_builder [@0:03]
============================================================
Formatting .dart files...
Running command: "dart format example/lib/all_extension_types.dart example/lib/all_extension_types.g.dart example/lib/all_types.dart example/lib/all_types.g.dart example/lib/case_sensitive_example.dart example/lib/case_sensitive_example.g.dart example/lib/custom_encoder_example.dart example/lib/custom_encoder_example.g.dart example/lib/extra_example.dart example/lib/extra_example.g.dart example/lib/go_relative.dart example/lib/go_relative.g.dart example/lib/json_example.dart example/lib/json_example.g.dart example/lib/json_nested_example.dart example/lib/json_nested_example.g.dart example/lib/main.dart example/lib/main.g.dart example/lib/on_exit_example.dart example/lib/on_exit_example.g.dart example/lib/readme_excerpts.dart example/lib/readme_excerpts.g.dart example/lib/separate_file_route.dart example/lib/shared/data.dart example/lib/shared/json_example.dart example/lib/shell_route_example.dart example/lib/shell_route_example.g.dart example/lib/shell_route_with_keys_example.dart example/lib/shell_route_with_keys_example.g.dart example/lib/shell_route_with_observers_example.dart example/lib/shell_route_with_observers_example.g.dart example/lib/simple_example.dart example/lib/simple_example.g.dart example/lib/stateful_shell_route_example.dart example/lib/stateful_shell_route_example.g.dart example/lib/stateful_shell_route_initial_location_example.dart example/lib/stateful_shell_route_initial_location_example.g.dart example/test/all_types_test.dart example/test/case_sensitivity_example_test.dart example/test/ensure_build_test.dart example/test/go_relative_test.dart example/test/location_test.dart example/test/on_exit_example_test.dart example/test/shell_route_test.dart example/test/shell_route_with_keys_test.dart example/test/simple_example_test.dart example/test/stateful_shell_route_initial_location_test.dart example/test/stateful_shell_route_test.dart example/test/widget_test.dart lib/go_router_builder.dart lib/src/go_router_generator.dart lib/src/path_utils.dart lib/src/route_config.dart lib/src/type_helpers.dart test/flutter_test_config.dart test/path_utils_test.dart test_inputs/bad_json.dart test_inputs/bad_json_template.dart test_inputs/bad_path_pattern.dart test_inputs/case_sensitivity.dart test_inputs/custom_encoder.dart test_inputs/default_value.dart test_inputs/enum_parameter.dart test_inputs/extension_type_parameter.dart test_inputs/extra_value.dart test_inputs/go_relative.dart test_inputs/iterable_with_default_value.dart test_inputs/iterable_with_enum.dart test_inputs/json.dart test_inputs/json_template.dart test_inputs/list.dart test_inputs/missing_type_annotation.dart test_inputs/named_escaped_route.dart test_inputs/named_route.dart test_inputs/no_mixin.dart test_inputs/no_mixin_relative.dart test_inputs/nullable_default_value.dart test_inputs/parameter_generates_a_warning.dart test_inputs/relative_route_with_absolute_path.dart test_inputs/relative_route_with_direct_absolute_sub_route.dart test_inputs/relative_route_with_indirect_absolute_sub_route.dart test_inputs/required_extra_value.dart test_inputs/required_nullable_type_arguments_extra_value.dart test_inputs/required_parameters_in_path_cannnot_be_null.dart test_inputs/required_parameters_not_in_path_can_be_null.dart test_inputs/required_query_parameter.dart test_inputs/set.dart test_inputs/shell_route_data.dart test_inputs/shell_route_data_without_unnamed_constructor.dart test_inputs/stateful_shell_branch_data.dart test_inputs/stateful_shell_branch_with_observers_data.dart test_inputs/stateful_shell_branch_with_preload_data.dart test_inputs/stateful_shell_route_data.dart test_inputs/unsupported_type.dart test_inputs/wrong_class_type.dart tool/run_tests.dart" in /b/s/w/ir/x/w/packages/packages/go_router_builder
Formatted lib/src/type_helpers.dart
Formatted 96 files (1 changed) in 0.25 seconds.
[packages/go_router_builder completed in 0m 0s]
These files are not formatted correctly (see diff below):
packages/go_router_builder/lib/src/type_helpers.dart
To fix run the repository tooling `format` command:
https://github.com/flutter/packages/blob/main/script/tool/README.md#format-code
or copy-paste this command into your terminal:
patch -p1 <<DONE
diff --git a/packages/go_router_builder/lib/src/type_helpers.dart b/packages/go_router_builder/lib/src/type_helpers.dart
index ed907f15e..ed21b1f68 100644
--- a/packages/go_router_builder/lib/src/type_helpers.dart
+++ b/packages/go_router_builder/lib/src/type_helpers.dart
@@ -193,8 +193,8 @@ T? getNodeDeclaration<T extends AstNode>(InterfaceElement2 element) {
session.getParsedLibraryByElement2(element.library2)
as ParsedLibraryResult;
final FragmentDeclarationResult? declaration = parsedLibrary
- // ignore: experimental_member_use
- .getFragmentDeclaration(element.firstFragment);
+ // ignore: experimental_member_use
+ .getFragmentDeclaration(element.firstFragment);
final AstNode? node = declaration?.node;
return node is T ? node : null;
DONE