Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(298)

Unified Diff: sdk/lib/_internal/pub_generated/lib/src/validator.dart

Issue 887223007: Revert "Use native async/await support in pub." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sdk/lib/_internal/pub_generated/lib/src/validator.dart
diff --git a/sdk/lib/_internal/pub/lib/src/validator.dart b/sdk/lib/_internal/pub_generated/lib/src/validator.dart
similarity index 75%
copy from sdk/lib/_internal/pub/lib/src/validator.dart
copy to sdk/lib/_internal/pub_generated/lib/src/validator.dart
index 7bdcdc999aacc3fda50304faca0c77be80ca3d3d..25e68435d3ba396519f991cf62f01fe9e55bc848 100644
--- a/sdk/lib/_internal/pub/lib/src/validator.dart
+++ b/sdk/lib/_internal/pub_generated/lib/src/validator.dart
@@ -55,30 +55,27 @@ abstract class Validator {
/// [packageSize], if passed, should complete to the size of the tarred
/// package, in bytes. This is used to validate that it's not too big to
/// upload to the server.
- static Future<Pair<List<String>, List<String>>> runAll(
- Entrypoint entrypoint, [Future<int> packageSize]) {
+ static Future<Pair<List<String>, List<String>>> runAll(Entrypoint entrypoint,
+ [Future<int> packageSize]) {
var validators = [
- new LicenseValidator(entrypoint),
- new NameValidator(entrypoint),
- new PubspecFieldValidator(entrypoint),
- new DependencyValidator(entrypoint),
- new DependencyOverrideValidator(entrypoint),
- new DirectoryValidator(entrypoint),
- new ExecutableValidator(entrypoint),
- new CompiledDartdocValidator(entrypoint),
- new Utf8ReadmeValidator(entrypoint),
- new SdkConstraintValidator(entrypoint)
- ];
+ new LicenseValidator(entrypoint),
+ new NameValidator(entrypoint),
+ new PubspecFieldValidator(entrypoint),
+ new DependencyValidator(entrypoint),
+ new DependencyOverrideValidator(entrypoint),
+ new DirectoryValidator(entrypoint),
+ new ExecutableValidator(entrypoint),
+ new CompiledDartdocValidator(entrypoint),
+ new Utf8ReadmeValidator(entrypoint),
+ new SdkConstraintValidator(entrypoint)];
if (packageSize != null) {
validators.add(new SizeValidator(entrypoint, packageSize));
}
- return Future.wait(validators.map((validator) => validator.validate()))
- .then((_) {
- var errors =
- flatten(validators.map((validator) => validator.errors));
- var warnings =
- flatten(validators.map((validator) => validator.warnings));
+ return Future.wait(
+ validators.map((validator) => validator.validate())).then((_) {
+ var errors = flatten(validators.map((validator) => validator.errors));
+ var warnings = flatten(validators.map((validator) => validator.warnings));
if (!errors.isEmpty) {
log.error("Missing requirements:");

Powered by Google App Engine
This is Rietveld 408576698