-
Notifications
You must be signed in to change notification settings - Fork 362
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate to the dart_style DartFormatter API. #1307
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. |
Do you know what's up with those analysis failures? Can I ignore those? |
I think that the failures are unrelated to your change. |
…_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-lang/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-lang/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-lang/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-lang/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-lang/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-lang/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-lang/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-lang/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-lang/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-lang/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-lang/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-lang/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-lang/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-lang/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-lang/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-lang/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-lang/yaml#170) Change-Id: Ic615a1d2c6aa44d2913bae911d06ab5b0605954d Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/388021 Reviewed-by: Konstantin Shcheglov <[email protected]> Commit-Queue: Devon Carew <[email protected]>
Looks like I missed one constructor call when I fixed the others in: #1307
Looks like I missed one constructor call when I fixed the others in: #1307
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.