Improve pub's pubspec error messages.
This uses the source spans exposed by the yaml package to associate pubspec errors visually with the section of the pubspec that caused them. R=rnystrom@google.com BUG=14999 Review URL: https://codereview.chromium.org//351703004 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge@37675 260f80e4-7a28-3924-810f-c04153c831b5
Showing
- bin/pub.dart 6 additions, 2 deletionsbin/pub.dart
- lib/src/barback/transformer_config.dart 39 additions, 31 deletionslib/src/barback/transformer_config.dart
- lib/src/barback/transformer_id.dart 10 additions, 5 deletionslib/src/barback/transformer_id.dart
- lib/src/pubspec.dart 128 additions, 162 deletionslib/src/pubspec.dart
- lib/src/utils.dart 14 additions, 10 deletionslib/src/utils.dart
- test/get/git/dependency_name_match_pubspec_test.dart 5 additions, 2 deletionstest/get/git/dependency_name_match_pubspec_test.dart
- test/get/git/require_pubspec_name_test.dart 5 additions, 2 deletionstest/get/git/require_pubspec_name_test.dart
- test/pub_get_and_upgrade_test.dart 10 additions, 6 deletionstest/pub_get_and_upgrade_test.dart
- test/pubspec_test.dart 12 additions, 15 deletionstest/pubspec_test.dart
- test/test_pub.dart 8 additions, 7 deletionstest/test_pub.dart
- test/transformer/fails_to_load_a_pubspec_with_reserved_transformer_test.dart 6 additions, 5 deletions...ils_to_load_a_pubspec_with_reserved_transformer_test.dart
- test/transformer/fails_to_load_a_transform_from_a_non_dependency_test.dart 3 additions, 5 deletions...fails_to_load_a_transform_from_a_non_dependency_test.dart
- test/upgrade/git/upgrade_to_incompatible_pubspec_test.dart 5 additions, 2 deletionstest/upgrade/git/upgrade_to_incompatible_pubspec_test.dart
Loading
Please register or sign in to comment