-
Notifications
You must be signed in to change notification settings - Fork 62
Various changes to close a bunch of open issues #21
Conversation
| final Set<String> _hide = new Set<String>(); | ||
|
|
||
| factory ImportBuilder(String path, {bool deferred: false, String prefix}) { | ||
| return new ImportBuilder._(path, prefix, deferred); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it should be an error to have deferred && prefix == null
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto below.
| export 'package:foo/foo.dart' hide Bar; | ||
| '''), | ||
| ); | ||
| }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should error when deferred is true and there is no prefix
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree. I don't have any checks for any other invalid syntax though, so probably out of scope. Definitely we need sanity checks for obviously invalid syntax.
| # Make sure we pass the analyzer | ||
| echo "Checking dartanalyzer..." | ||
| FAILS_ANALYZER="$(find lib test -name "*.dart" | xargs dartanalyzer --options analysis_options.yaml)" | ||
| FAILS_ANALYZER="$(find lib test -name "*.dart" | xargs dartanalyzer --options .analysis_options)" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd prefer .yaml because .files are hidden by file managers and ls by default, and this file is just a regular hand-written project file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just trying to be consistent with the rest of dart-lang more than anything.
…ilder#21) * Various changes. * Update presubmit.
1.0.0-alpha+1
showandhidesupport toImportBuilderdeferredsupport toImportBuilderExportBuilderlistandmapliterals that support generic typesCloses dart-lang/tools#949
Closes dart-lang/tools#950
Closes dart-lang/tools#951
Closes dart-lang/tools#952
/cc @alorenzen