• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

dart-lang / native / 31392236366
50%

Build:
DEFAULT BRANCH: main
Ran 10 Aug 2026 01:27PM UTC
Jobs 0
Files 0
Run time –
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
  cancel
31392236366

push

github

web-flow
[code_assets] Make `LinkMode` and `LinkModePreference` closed (#3462)

Makes the link mode and link mode preference closed enums / a closed tagged union.

https://github.com/dart-lang/native/pull/3413#issuecomment-4914618509

Code assets changes:

* Changes the JSON schema to a closed enum for link mode preference and closed tagged union for link mode.
  * So encountering an unknown value in a json is now a parse error.
  * And will print a more elaborate error message.
* Sealed the `LinkMode` class.
* Skipping a version bump, we'll bump to 2.0 in the next PR due to breaking changes.

JSON syntax generator changes:

* Updated closed enum generation to pass valid enum values to `_throwFormatException`.
* Updated closed tagged union generationto pass valid discriminator tag values to `_throwFormatException`.
* Added `Set<String>? expectedValues` parameter to `throwFormatException` and `errorString` to format error messages as `Expected one of 'a', 'b'`.
* Made `expectedType` an optional named parameter on `throwFormatException` and `errorString` in `helper_library.dart`.
* Added a json path to the constructor for enums to be able to give the json path in the error message.

Other package changes:

* Update all the generated syntax (no functional change as they have no closed enums).
Source Files on build 31392236366
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #31392236366
  • 71e9d3ef on github
  • Prev Build on main (#31382041755)
  • Next Build on main (#31402725852)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc