Günter Zöchbauer
Günter Zöchbauer

Reputation: 657048

Dart compiler or syntax check for command line

Is there a way to call a Dart compiler just to verify the validity of my program without running it from the command line?

If I have a web_ui app I can call dwc, but what about a Dart library package?

Upvotes: 2

Views: 330

Answers (1)

Ladicek
Ladicek

Reputation: 6577

You can always run dart_analyzer, it's designed for this. It is actually (almost) the same code that powers the Dart Editor, so you can get syntax errors, static type warnings, deprecation warnings etc.

Upvotes: 6

Related Questions