Migrate to the dart_style DartFormatter API.#1307
Merged
Merged
Conversation
Going forward, the formatter needs to know what language version it should use to parse input code. This updates the generator to pass in a version. (In this case, since it's just used for code generation, it unconditionally passes in the latest language version, which should be fine.) Fix #1304.
PR HealthBreaking changes ✔️
Changelog Entry ✔️
Changes to files need to be accounted for in their respective changelogs. Coverage ✔️
This check for test coverage is informational (issues shown here will not fail the PR). API leaks ✔️The following packages contain symbols visible in the public API, but not exported by the library. Export these symbols or remove them from your publicly visible API.
License Headers ✔️
All source files should start with a license header. Unrelated files missing license headers
Package publish validation ✔️
Documentation at https://github.com/dart-lang/ecosystem/wiki/Publishing-automation. |
brianquinlan
approved these changes
Sep 24, 2024
Member
Author
|
Do you know what's up with those analysis failures? Can I ignore those? |
Collaborator
I think that the failures are unrelated to your change. |
copybara-service Bot
pushed a commit
to dart-lang/sdk
that referenced
this pull request
Oct 2, 2024
…_launcher, cli_util, clock, csslib, ecosystem, fixnum, glob, html, http, http_multi_server, lints, logging, markdown, matcher, package_config, pub_semver, shelf, source_maps, source_span, stack_trace, stream_channel, string_scanner, term_glyph, test_descriptor, test_process, test_reflective_loader, tools, watcher, web, webkit_inspection_protocol, yaml Revisions updated by `dart tools/rev_sdk_deps.dart`. bazel_worker (https://github.com/dart-lang/bazel_worker/compare/02f190b..aa3cc9e): aa3cc9e 2024-10-01 dependabot[bot] Bump actions/checkout from 4.1.7 to 4.2.0 in the github-actions group (dart-archive/bazel_worker#95) benchmark_harness (https://github.com/dart-lang/benchmark_harness/compare/a06785c..44f125a): 44f125a 2024-10-01 dependabot[bot] Bump actions/checkout from 4.1.7 to 4.2.0 in the github-actions group (dart-archive/benchmark_harness#110) boolean_selector (https://github.com/dart-lang/boolean_selector/compare/c5468f4..d6c7c36): d6c7c36 2024-10-01 dependabot[bot] Bump actions/checkout from 4.1.7 to 4.2.0 in the github-actions group (dart-archive/boolean_selector#64) browser_launcher (https://github.com/dart-lang/browser_launcher/compare/0acd188..e5fc5d4): e5fc5d4 2024-10-01 dependabot[bot] Bump actions/checkout from 4.1.7 to 4.2.0 in the github-actions group (dart-archive/browser_launcher#65) cli_util (https://github.com/dart-lang/cli_util/compare/6a0bb92..c36b394): c36b394 2024-10-01 dependabot[bot] Bump actions/checkout from 4.1.7 to 4.2.0 in the github-actions group (dart-archive/cli_util#107) clock (https://github.com/dart-lang/clock/compare/6e43768..7956d60): 7956d60 2024-10-01 dependabot[bot] Bump actions/checkout from 4.1.7 to 4.2.0 in the github-actions group (dart-archive/clock#69) csslib (https://github.com/dart-lang/csslib/compare/d486627..a3700b0): a3700b0 2024-10-01 dependabot[bot] Bump actions/checkout from 4.1.7 to 4.2.0 in the github-actions group (dart-archive/csslib#207) ecosystem (https://github.com/dart-lang/ecosystem/compare/4ba6f15..2d58550): 2d58550 2024-10-01 dependabot[bot] Bump the github-actions group with 5 updates (dart-lang/ecosystem#302) c9d0414 2024-09-30 Devon Carew update the trebuchet remaining steps output into a markdown list (dart-lang/ecosystem#300) 492a5bd 2024-09-27 Devon Carew rev dep on package:lints to 5.0.0 (dart-lang/ecosystem#301) 0ea4f59 2024-09-26 Devon Carew Update the output for the trebuchet tool (dart-lang/ecosystem#299) 70521d7 2024-09-23 Moritz Update health.dart (dart-lang/ecosystem#298) fixnum (https://github.com/dart-lang/fixnum/compare/6c19e60..83293b8): 83293b8 2024-10-01 dependabot[bot] Bump actions/checkout from 4.1.7 to 4.2.0 in the github-actions group (dart-archive/fixnum#133) glob (https://github.com/dart-lang/glob/compare/8b05be8..00a9c82): 00a9c82 2024-10-01 dependabot[bot] Bump actions/checkout from 4.1.7 to 4.2.0 in the github-actions group (dart-archive/glob#97) html (https://github.com/dart-lang/html/compare/5516387..6d3bc86): 6d3bc86 2024-10-01 dependabot[bot] Bump actions/checkout from 4.1.7 to 4.2.0 in the github-actions group (dart-archive/html#257) http (https://github.com/dart-lang/http/compare/dfeecf0..f59cd79): f59cd79 2024-10-02 Hossein Yousefi [cronet_http] Upgrade jni and jnigen to 0.12.0 (dart-lang/http#1311) aded576 2024-09-25 Bob Nystrom Migrate to the dart_style DartFormatter API. (dart-lang/http#1307) http_multi_server (https://github.com/dart-lang/http_multi_server/compare/8348be1..e7515b5): e7515b5 2024-10-01 dependabot[bot] Bump actions/checkout from 4.1.7 to 4.2.0 in the github-actions group (dart-archive/http_multi_server#72) lints (https://github.com/dart-lang/lints/compare/a97011b..5016d63): 5016d63 2024-10-01 dependabot[bot] Bump actions/checkout from 4.1.7 to 4.2.0 (dart-archive/lints#212) logging (https://github.com/dart-lang/logging/compare/8752902..05116e7): 05116e7 2024-10-01 dependabot[bot] Bump actions/checkout from 4.1.7 to 4.2.0 in the github-actions group (dart-archive/logging#172) markdown (https://github.com/dart-lang/markdown/compare/f6eaea3..d53feae): d53feae 2024-10-01 dependabot[bot] Bump actions/checkout from 4.1.7 to 4.2.0 in the github-actions group (dart-archive/markdown#622) matcher (https://github.com/dart-lang/matcher/compare/d6d573d..31f1358): 31f1358 2024-10-01 dependabot[bot] Bump actions/checkout from 4.1.7 to 4.2.0 in the github-actions group (dart-archive/matcher#255) package_config (https://github.com/dart-lang/package_config/compare/76934c2..bafff8e): bafff8e 2024-10-01 dependabot[bot] Bump actions/checkout from 4.1.7 to 4.2.0 in the github-actions group (dart-archive/package_config#159) pub_semver (https://github.com/dart-lang/pub_semver/compare/d9e5ee6..8cce9d0): 8cce9d0 2024-10-01 dependabot[bot] Bump actions/checkout from 4.1.7 to 4.2.0 in the github-actions group (dart-archive/pub_semver#107) shelf (https://github.com/dart-lang/shelf/compare/d53a8f9..f560053): f560053 2024-10-01 dependabot[bot] Bump actions/checkout from 4.1.7 to 4.2.0 in the github-actions group (dart-lang/shelf#448) source_maps (https://github.com/dart-lang/source_maps/compare/5f82c61..17695e8): 17695e8 2024-10-01 dependabot[bot] Bump actions/checkout from 4.1.7 to 4.2.0 in the github-actions group (dart-archive/source_maps#96) source_span (https://github.com/dart-lang/source_span/compare/f81cd4a..ec100b7): ec100b7 2024-10-01 dependabot[bot] Bump actions/checkout from 4.1.7 to 4.2.0 in the github-actions group (dart-archive/source_span#117) stack_trace (https://github.com/dart-lang/stack_trace/compare/9476c0a..115bcd9): 115bcd9 2024-10-01 dependabot[bot] Bump actions/checkout from 4.1.7 to 4.2.0 in the github-actions group (dart-archive/stack_trace#163) stream_channel (https://github.com/dart-lang/stream_channel/compare/c0c5a97..f440716): f440716 2024-10-01 dependabot[bot] Bump actions/checkout from 4.1.7 to 4.2.0 in the github-actions group (dart-archive/stream_channel#111) string_scanner (https://github.com/dart-lang/string_scanner/compare/a40bbbd..2139417): 2139417 2024-10-01 dependabot[bot] Bump actions/checkout from 4.1.7 to 4.2.0 in the github-actions group (dart-archive/string_scanner#79) term_glyph (https://github.com/dart-lang/term_glyph/compare/38a158f..19d8c08): 19d8c08 2024-10-01 dependabot[bot] Bump actions/checkout from 4.1.7 to 4.2.0 in the github-actions group (dart-archive/term_glyph#56) test_descriptor (https://github.com/dart-lang/test_descriptor/compare/3b85d38..a3db1ef): a3db1ef 2024-10-01 dependabot[bot] Bump actions/checkout from 4.1.7 to 4.2.0 in the github-actions group (dart-archive/test_descriptor#71) test_process (https://github.com/dart-lang/test_process/compare/6223572..52ee3f5): 52ee3f5 2024-10-01 dependabot[bot] Bump actions/checkout from 4.1.7 to 4.2.0 in the github-actions group (dart-archive/test_process#62) test_reflective_loader (https://github.com/dart-lang/test_reflective_loader/compare/6e64886..598af2f): 598af2f 2024-10-01 dependabot[bot] Bump actions/checkout from 4.1.7 to 4.2.0 in the github-actions group (dart-archive/test_reflective_loader#65) tools (https://github.com/dart-lang/tools/compare/3440b74..42996fd): 42996fde 2024-10-01 dependabot[bot] Bump actions/checkout from 4.1.7 to 4.2.0 in the github-actions group (dart-lang/tools#596) watcher (https://github.com/dart-lang/watcher/compare/0484625..3b85077): 3b85077 2024-10-01 dependabot[bot] Bump actions/checkout from 4.1.7 to 4.2.0 in the github-actions group (dart-archive/watcher#171) web (https://github.com/dart-lang/web/compare/d16c4bc..8478cd2): 8478cd2 2024-10-01 dependabot[bot] Bump actions/checkout from 4.1.7 to 4.2.0 in the github-actions group (dart-lang/web#312) webkit_inspection_protocol (https://github.com/google/webkit_inspection_protocol.dart/compare/e7418d7..b459c42): b459c42 2024-10-01 Devon Carew Update dependabot.yaml (google/webkit_inspection_protocol.dart#130) 616e0f2 2024-10-01 dependabot[bot] Bump actions/checkout from 4.1.7 to 4.2.0 in the github-actions group (google/webkit_inspection_protocol.dart#129) yaml (https://github.com/dart-lang/yaml/compare/b3d299e..e773005): e773005 2024-10-01 dependabot[bot] Bump actions/checkout from 4.1.7 to 4.2.0 in the github-actions group (dart-archive/yaml#170) Change-Id: Ic615a1d2c6aa44d2913bae911d06ab5b0605954d Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/388021 Reviewed-by: Konstantin Shcheglov <scheglov@google.com> Commit-Queue: Devon Carew <devoncarew@google.com>
munificent
added a commit
that referenced
this pull request
Oct 15, 2024
Looks like I missed one constructor call when I fixed the others in: #1307
munificent
added a commit
that referenced
this pull request
Oct 15, 2024
Looks like I missed one constructor call when I fixed the others in: #1307
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Going forward, the formatter needs to know what language version it should use to parse input code. This updates the generator to pass in a version. (In this case, since it's just used for code generation, it unconditionally passes in the latest language version, which should be fine.)
Fix #1304.