Skip to content
This repository was archived by the owner on Apr 8, 2025. It is now read-only.

Conversation

@matanlurey
Copy link
Contributor

1.0.0-alpha+1

  • Slight updates to confusing documentation.
  • Added support for null-aware assignments.
  • Added show and hide support to ImportBuilder
  • Added deferred support to ImportBuilder
  • Added ExportBuilder
  • Added list and map literals that support generic types

Closes dart-lang/tools#949
Closes dart-lang/tools#950
Closes dart-lang/tools#951
Closes dart-lang/tools#952

/cc @alorenzen

final Set<String> _hide = new Set<String>();

factory ImportBuilder(String path, {bool deferred: false, String prefix}) {
return new ImportBuilder._(path, prefix, deferred);
Copy link
Contributor

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

Copy link
Contributor Author

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;
'''),
);
});
Copy link
Contributor

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

Copy link
Contributor Author

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)"
Copy link
Contributor

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.

Copy link
Contributor Author

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.

@matanlurey matanlurey merged commit a0c6a33 into dart-archive:master Nov 15, 2016
mosuem pushed a commit to dart-lang/tools that referenced this pull request Oct 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

4 participants