Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(666)

Issue 2975253002: Format analyzer, analysis_server, analyzer_plugin, front_end and kernel with the latest dartfmt. (Closed)

Created:
3 years, 5 months ago by scheglov
Modified:
3 years, 5 months ago
CC:
reviews_dartlang.org, dart-fe-team+reviews_google.com
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Format analyzer, analysis_server, analyzer_plugin, front_end and kernel with the latest dartfmt. ...instead of mixing formatting with actual changes in many CLs. R=ahe@google.com, paulberry@google.com, sigmund@google.com BUG= Committed: https://github.com/dart-lang/sdk/commit/00d501290645f217883290001dc50f9fc9305ad0

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4622 lines, -12521 lines) Patch
M pkg/analysis_server/test/abstract_context.dart View 1 chunk +1 line, -4 lines 0 comments Download
M pkg/analysis_server/test/analysis/get_errors_test.dart View 2 chunks +3 lines, -9 lines 0 comments Download
M pkg/analysis_server/test/analysis/notification_errors_test.dart View 1 chunk +1 line, -3 lines 0 comments Download
M pkg/analysis_server/test/analysis/notification_highlights_test.dart View 1 chunk +1 line, -3 lines 0 comments Download
M pkg/analysis_server/test/analysis/notification_highlights_test2.dart View 1 chunk +1 line, -3 lines 0 comments Download
M pkg/analysis_server/test/analysis/notification_implemented_test.dart View 1 chunk +1 line, -3 lines 0 comments Download
M pkg/analysis_server/test/analysis/notification_navigation_test.dart View 2 chunks +2 lines, -6 lines 0 comments Download
M pkg/analysis_server/test/analysis/notification_overrides_test.dart View 1 chunk +1 line, -3 lines 0 comments Download
M pkg/analysis_server/test/analysis/set_priority_files_test.dart View 3 chunks +3 lines, -9 lines 0 comments Download
M pkg/analysis_server/test/analysis/update_content_test.dart View 1 chunk +3 lines, -9 lines 0 comments Download
M pkg/analysis_server/test/analysis_server_test.dart View 2 chunks +2 lines, -6 lines 0 comments Download
M pkg/analysis_server/test/completion_test.dart View 56 chunks +411 lines, -856 lines 0 comments Download
M pkg/analysis_server/test/context_manager_test.dart View 26 chunks +38 lines, -114 lines 0 comments Download
M pkg/analysis_server/test/domain_analysis_test.dart View 4 chunks +5 lines, -15 lines 0 comments Download
M pkg/analysis_server/test/domain_completion_test.dart View 3 chunks +3 lines, -9 lines 0 comments Download
M pkg/analysis_server/test/edit/assists_test.dart View 3 chunks +3 lines, -9 lines 0 comments Download
M pkg/analysis_server/test/edit/postfix_completion_test.dart View 1 chunk +1 line, -3 lines 0 comments Download
M pkg/analysis_server/test/edit/refactoring_test.dart View 41 chunks +64 lines, -140 lines 0 comments Download
M pkg/analysis_server/test/edit/sort_members_test.dart View 1 chunk +1 line, -3 lines 0 comments Download
M pkg/analysis_server/test/edit/statement_completion_test.dart View 2 chunks +2 lines, -6 lines 0 comments Download
M pkg/analysis_server/test/integration/analysis/analysis_options_test.dart View 2 chunks +2 lines, -6 lines 0 comments Download
M pkg/analysis_server/test/integration/analysis/error_test.dart View 3 chunks +3 lines, -9 lines 0 comments Download
M pkg/analysis_server/test/integration/analysis/lint_test.dart View 3 chunks +5 lines, -15 lines 0 comments Download
M pkg/analysis_server/test/integration/analysis/set_analysis_roots_test.dart View 1 chunk +1 line, -3 lines 0 comments Download
M pkg/analysis_server/test/integration/analysis/set_general_subscriptions_test.dart View 1 chunk +1 line, -3 lines 0 comments Download
M pkg/analysis_server/test/integration/analysis/set_subscriptions_test.dart View 1 chunk +1 line, -3 lines 0 comments Download
M pkg/analysis_server/test/integration/analysis/update_content_test.dart View 1 chunk +1 line, -3 lines 0 comments Download
M pkg/analysis_server/test/integration/analysis/update_options_test.dart View 1 chunk +1 line, -3 lines 0 comments Download
M pkg/analysis_server/test/integration/completion/get_suggestions_test.dart View 3 chunks +3 lines, -9 lines 0 comments Download
M pkg/analysis_server/test/integration/server/set_subscriptions_test.dart View 2 chunks +2 lines, -6 lines 0 comments Download
M pkg/analysis_server/test/integration/server/status_test.dart View 1 chunk +1 line, -3 lines 0 comments Download
M pkg/analysis_server/test/mock_sdk.dart View 5 chunks +12 lines, -26 lines 0 comments Download
M pkg/analysis_server/test/plugin/protocol_dart_test.dart View 10 chunks +10 lines, -30 lines 0 comments Download
M pkg/analysis_server/test/search/element_references_test.dart View 3 chunks +3 lines, -9 lines 0 comments Download
M pkg/analysis_server/test/search/type_hierarchy_test.dart View 2 chunks +2 lines, -6 lines 0 comments Download
M pkg/analysis_server/test/services/completion/dart/arglist_contributor_test.dart View 11 chunks +11 lines, -33 lines 0 comments Download
M pkg/analysis_server/test/services/completion/dart/combinator_contributor_test.dart View 2 chunks +6 lines, -18 lines 0 comments Download
M pkg/analysis_server/test/services/completion/dart/completion_manager_test.dart View 2 chunks +2 lines, -6 lines 0 comments Download
M pkg/analysis_server/test/services/completion/dart/imported_reference_contributor_test.dart View 97 chunks +124 lines, -372 lines 0 comments Download
M pkg/analysis_server/test/services/completion/dart/inherited_reference_contributor_test.dart View 17 chunks +17 lines, -51 lines 0 comments Download
M pkg/analysis_server/test/services/completion/dart/library_member_contributor_test.dart View 8 chunks +9 lines, -27 lines 0 comments Download
M pkg/analysis_server/test/services/completion/dart/library_prefix_contributor_test.dart View 12 chunks +23 lines, -69 lines 0 comments Download
M pkg/analysis_server/test/services/completion/dart/local_constructor_contributor_test.dart View 68 chunks +92 lines, -276 lines 0 comments Download
M pkg/analysis_server/test/services/completion/dart/local_library_contributor_test.dart View 6 chunks +12 lines, -36 lines 0 comments Download
M pkg/analysis_server/test/services/completion/dart/local_reference_contributor_test.dart View 73 chunks +97 lines, -291 lines 0 comments Download
M pkg/analysis_server/test/services/completion/dart/named_constructor_contributor_test.dart View 3 chunks +3 lines, -9 lines 0 comments Download
M pkg/analysis_server/test/services/completion/dart/override_contributor_test.dart View 2 chunks +2 lines, -6 lines 0 comments Download
M pkg/analysis_server/test/services/completion/dart/static_member_contributor_test.dart View 1 chunk +1 line, -3 lines 0 comments Download
M pkg/analysis_server/test/services/completion/dart/type_member_contributor_test.dart View 69 chunks +93 lines, -279 lines 0 comments Download
M pkg/analysis_server/test/services/completion/postfix/postfix_completion_test.dart View 43 chunks +77 lines, -231 lines 0 comments Download
M pkg/analysis_server/test/services/completion/statement/statement_completion_test.dart View 1 chunk +1 line, -3 lines 0 comments Download
M pkg/analysis_server/test/services/correction/assist_test.dart View 158 chunks +160 lines, -557 lines 0 comments Download
M pkg/analysis_server/test/services/correction/fix_test.dart View 245 chunks +256 lines, -767 lines 0 comments Download
M pkg/analysis_server/test/services/correction/organize_directives_test.dart View 9 chunks +14 lines, -33 lines 0 comments Download
M pkg/analysis_server/test/services/correction/util_test.dart View 13 chunks +13 lines, -39 lines 0 comments Download
M pkg/analysis_server/test/services/dependencies/reachable_source_collector_test.dart View 1 chunk +1 line, -3 lines 0 comments Download
M pkg/analysis_server/test/services/linter/linter_test.dart View 1 chunk +8 lines, -16 lines 0 comments Download
M pkg/analysis_server/test/services/refactoring/convert_getter_to_method_test.dart View 1 chunk +1 line, -3 lines 0 comments Download
M pkg/analysis_server/test/services/refactoring/convert_method_to_getter_test.dart View 1 chunk +1 line, -3 lines 0 comments Download
M pkg/analysis_server/test/services/refactoring/extract_method_test.dart View 1 chunk +1 line, -3 lines 0 comments Download
M pkg/analysis_server/test/services/refactoring/move_file_test.dart View 11 chunks +19 lines, -57 lines 0 comments Download
M pkg/analysis_server/test/services/refactoring/rename_class_member_test.dart View 3 chunks +3 lines, -9 lines 0 comments Download
M pkg/analysis_server/test/services/refactoring/rename_library_test.dart View 3 chunks +4 lines, -12 lines 0 comments Download
M pkg/analysis_server/test/services/refactoring/rename_local_test.dart View 4 chunks +4 lines, -12 lines 0 comments Download
M pkg/analysis_server/test/services/refactoring/rename_unit_member_test.dart View 8 chunks +8 lines, -24 lines 0 comments Download
M pkg/analysis_server/test/services/search/search_engine_test.dart View 11 chunks +18 lines, -54 lines 0 comments Download
M pkg/analysis_server/test/src/computer/import_elements_computer_test.dart View 1 chunk +1 line, -3 lines 0 comments Download
M pkg/analyzer/test/dart/element/builder_test.dart View 1 chunk +2 lines, -4 lines 0 comments Download
M pkg/analyzer/test/embedder_tests.dart View 1 chunk +1 line, -3 lines 0 comments Download
M pkg/analyzer/test/generated/all_the_rest_test.dart View 16 chunks +20 lines, -62 lines 0 comments Download
M pkg/analyzer/test/generated/compile_time_error_code_test.dart View 23 chunks +28 lines, -84 lines 0 comments Download
M pkg/analyzer/test/generated/element_resolver_test.dart View 8 chunks +8 lines, -24 lines 0 comments Download
M pkg/analyzer/test/generated/hint_code_test.dart View 27 chunks +34 lines, -102 lines 0 comments Download
M pkg/analyzer/test/generated/non_error_resolver_test.dart View 29 chunks +38 lines, -114 lines 0 comments Download
M pkg/analyzer/test/generated/non_hint_code_test.dart View 13 chunks +19 lines, -57 lines 0 comments Download
M pkg/analyzer/test/generated/package_test.dart View 4 chunks +8 lines, -24 lines 0 comments Download
M pkg/analyzer/test/generated/parser_test.dart View 11 chunks +56 lines, -84 lines 0 comments Download
M pkg/analyzer/test/generated/resolver_test.dart View 12 chunks +12 lines, -27 lines 0 comments Download
M pkg/analyzer/test/generated/simple_resolver_test.dart View 8 chunks +13 lines, -39 lines 0 comments Download
M pkg/analyzer/test/generated/source_factory_test.dart View 1 chunk +4 lines, -8 lines 0 comments Download
M pkg/analyzer/test/generated/static_type_warning_code_test.dart View 54 chunks +401 lines, -780 lines 0 comments Download
M pkg/analyzer/test/generated/static_warning_code_test.dart View 20 chunks +35 lines, -105 lines 0 comments Download
M pkg/analyzer/test/generated/strong_mode_test.dart View 18 chunks +37 lines, -72 lines 0 comments Download
M pkg/analyzer/test/source/analysis_options_provider_test.dart View 8 chunks +11 lines, -30 lines 0 comments Download
M pkg/analyzer/test/source/sdk_ext_test.dart View 1 chunk +1 line, -3 lines 0 comments Download
M pkg/analyzer/test/src/command_line/arguments_test.dart View 1 chunk +1 line, -3 lines 0 comments Download
M pkg/analyzer/test/src/context/builder_test.dart View 23 chunks +28 lines, -83 lines 0 comments Download
M pkg/analyzer/test/src/context/context_test.dart View 47 chunks +66 lines, -195 lines 0 comments Download
M pkg/analyzer/test/src/context/mock_sdk.dart View 7 chunks +15 lines, -32 lines 0 comments Download
M pkg/analyzer/test/src/dart/analysis/driver_test.dart View 47 chunks +70 lines, -202 lines 0 comments Download
M pkg/analyzer/test/src/dart/analysis/file_state_test.dart View 25 chunks +38 lines, -114 lines 0 comments Download
M pkg/analyzer/test/src/dart/analysis/index_test.dart View 15 chunks +15 lines, -45 lines 0 comments Download
M pkg/analyzer/test/src/dart/analysis/search_test.dart View 3 chunks +4 lines, -12 lines 0 comments Download
M pkg/analyzer/test/src/dart/constant/evaluation_test.dart View 4 chunks +7 lines, -16 lines 0 comments Download
M pkg/analyzer/test/src/dart/element/element_test.dart View 13 chunks +13 lines, -39 lines 0 comments Download
M pkg/analyzer/test/src/dart/sdk/patch_test.dart View 57 chunks +121 lines, -245 lines 0 comments Download
M pkg/analyzer/test/src/dart/sdk/sdk_test.dart View 3 chunks +5 lines, -9 lines 0 comments Download
M pkg/analyzer/test/src/summary/linker_test.dart View 13 chunks +26 lines, -52 lines 0 comments Download
M pkg/analyzer/test/src/summary/resynthesize_common.dart View 724 chunks +1122 lines, -3310 lines 0 comments Download
M pkg/analyzer/test/src/summary/summary_common.dart View 63 chunks +113 lines, -263 lines 0 comments Download
M pkg/analyzer/test/src/summary/top_level_inference_test.dart View 103 chunks +104 lines, -312 lines 0 comments Download
M pkg/analyzer/test/src/task/dart_test.dart View 127 chunks +165 lines, -485 lines 0 comments Download
M pkg/analyzer/test/src/task/html_test.dart View 9 chunks +9 lines, -27 lines 0 comments Download
M pkg/analyzer/test/src/task/options_test.dart View 2 chunks +27 lines, -55 lines 0 comments Download
M pkg/analyzer/test/src/task/strong/checker_test.dart View 4 chunks +6 lines, -12 lines 0 comments Download
M pkg/analyzer/test/src/task/strong/inferred_type_test.dart View 10 chunks +24 lines, -48 lines 0 comments Download
M pkg/analyzer/test/src/task/strong_mode_test.dart View 2 chunks +2 lines, -6 lines 0 comments Download
M pkg/analyzer_plugin/test/src/utilities/change_builder/change_builder_dart_test.dart View 16 chunks +33 lines, -83 lines 0 comments Download
M pkg/analyzer_plugin/test/support/abstract_context.dart View 1 chunk +1 line, -4 lines 0 comments Download
M pkg/analyzer_plugin/test/support/mock_sdk.dart View 5 chunks +12 lines, -26 lines 0 comments Download
M pkg/analyzer_plugin/test/utilities/analyzer_converter_test.dart View 10 chunks +10 lines, -30 lines 0 comments Download
M pkg/analyzer_plugin/test/utilities/completion/inherited_reference_contributor_test.dart View 17 chunks +17 lines, -51 lines 0 comments Download
M pkg/analyzer_plugin/test/utilities/completion/type_member_contributor_test.dart View 69 chunks +93 lines, -279 lines 0 comments Download
M pkg/front_end/lib/src/fasta/testing/kernel_chain.dart View 1 chunk +1 line, -3 lines 0 comments Download
M pkg/front_end/test/incremental_kernel_generator_test.dart View 12 chunks +13 lines, -39 lines 0 comments Download
M pkg/front_end/test/src/incremental/file_state_test.dart View 13 chunks +17 lines, -51 lines 0 comments Download
M pkg/front_end/test/src/incremental/kernel_driver_test.dart View 27 chunks +33 lines, -99 lines 0 comments Download
M pkg/front_end/test/src/incremental/mock_sdk.dart View 4 chunks +4 lines, -12 lines 0 comments Download
M pkg/kernel/test/interpreter/suite.dart View 1 chunk +1 line, -2 lines 0 comments Download
M pkg/kernel/test/reify/kernel_chain.dart View 1 chunk +1 line, -3 lines 0 comments Download

Messages

Total messages: 9 (1 generated)
scheglov
3 years, 5 months ago (2017-07-13 21:58:50 UTC) #1
Paul Berry
lgtm
3 years, 5 months ago (2017-07-13 22:01:36 UTC) #2
Siggi Cherem (dart-lang)
which one is the "latest"? I've been using the formatter that is submitted under tools/... ...
3 years, 5 months ago (2017-07-13 22:15:45 UTC) #3
scheglov
On 2017/07/13 22:15:45, Siggi Cherem (dart-lang) wrote: > which one is the "latest"? > > ...
3 years, 5 months ago (2017-07-13 23:09:24 UTC) #4
scheglov
Committed patchset #1 (id:1) manually as 00d501290645f217883290001dc50f9fc9305ad0 (presubmit successful).
3 years, 5 months ago (2017-07-13 23:28:26 UTC) #6
Siggi Cherem (dart-lang)
On 2017/07/13 23:28:26, scheglov wrote: > Committed patchset #1 (id:1) manually as > 00d501290645f217883290001dc50f9fc9305ad0 (presubmit ...
3 years, 5 months ago (2017-07-13 23:39:14 UTC) #7
ahe
On 2017/07/13 23:39:14, Siggi Cherem (dart-lang) wrote: > On 2017/07/13 23:28:26, scheglov wrote: > > ...
3 years, 5 months ago (2017-07-14 08:52:05 UTC) #8
Siggi Cherem (dart-lang)
3 years, 5 months ago (2017-07-14 14:57:03 UTC) #9
Message was sent while issue was closed.
On 2017/07/14 08:52:05, ahe wrote:
> On 2017/07/13 23:39:14, Siggi Cherem (dart-lang) wrote:
> > On 2017/07/13 23:28:26, scheglov wrote:
> > > Committed patchset #1 (id:1) manually as
> > > 00d501290645f217883290001dc50f9fc9305ad0 (presubmit successful).
> > 
> > I think that then we should default to use the one under tools though.
> Otherwise
> > I'm afraid the presubmit will warn us that we are using a formatter that is
> too
> > new.
> > 
> > Do you agree?
> 
> I'd rather be using the version in the repo.
> 
> I don't understand why we have a version in tools. Not eating our own dogfood
is
> the fastest way to break stuff we didn't think about.
> 
> If someone needs to upload a CL where dartfmt is broken they can always use
> --bypass-hooks. This is a very different situation from test.dart, which if
> broken can prevent you from making progress by preventing you from testing
your
> new fancy way of compiling closures, etc.
> 
> Note: we'll never have negative compile times without new fancy ways of
> compiling closures ;-)

OK - I'm not opposed to that, but I believe that change should be done at the
PRESUBMIT level, not on our own code alone. In particular, I already noticed
that I'm getting warnings because of the version mismatch (the PRESUBMIT says
that a couple files have "formatting errors") :(

I filed https://github.com/dart-lang/sdk/issues/30164 to see whether that change
in PRESUBMIT is possible.

Powered by Google App Engine
This is Rietveld 408576698