mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 01:45:06 +00:00
93306f5ec0
... and update changelog and tweak SDK constraints Change-Id: Ifb3e733b84c3aecad0ff8fe805f77ef497248f3b Reviewed-on: https://dart-review.googlesource.com/c/86600 Commit-Queue: Dan Rubel <danrubel@google.com> Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> |
||
---|---|---|
.. | ||
bin | ||
example | ||
lib | ||
test | ||
.gitignore | ||
analysis_options.yaml | ||
CHANGELOG.md | ||
LICENSE | ||
pubspec.yaml | ||
README.md |
dartfix
dartfix is a tool for migrating Dart source to newer versions of the Dart SDK, and fixing common issues including:
- Converting classes used as mixins to use the new mixin syntax
- Converting double literals to int literals where applicable
- Moving named constructor type arguments from the name to the type
Usage
To activate the package
pub global activate dartfix
Once activated, dart fix can be run using
pub global run dartfix:fix <target directory>
or if you have setup your path to include the pub bin directory, then simply
dartfix <target directory>