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

Unified Diff: pkg/analyzer/lib/src/task/dart.dart

Issue 2706123002: Remove AnalysisErrorWithProperties and ErrorProperty. (Closed)
Patch Set: Created 3 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
« no previous file with comments | « pkg/analyzer/lib/error/listener.dart ('k') | pkg/analyzer/test/src/task/dart_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/task/dart.dart
diff --git a/pkg/analyzer/lib/src/task/dart.dart b/pkg/analyzer/lib/src/task/dart.dart
index 5e57f8e700ea38e31889a091ccf72389e3c554e0..a8cd2e6afbb1091055bc9badaddbcf956a25e554 100644
--- a/pkg/analyzer/lib/src/task/dart.dart
+++ b/pkg/analyzer/lib/src/task/dart.dart
@@ -1627,17 +1627,8 @@ class BuildLibraryElementTask extends SourceBasedAnalysisTask {
}
}
if (hasPartDirective && libraryNameNode == null) {
- AnalysisError error;
- if (partsLibraryName != _UNKNOWN_LIBRARY_NAME &&
- partsLibraryName != null) {
- error = new AnalysisErrorWithProperties(librarySource, 0, 0,
- ResolverErrorCode.MISSING_LIBRARY_DIRECTIVE_WITH_PART)
- ..setProperty(ErrorProperty.PARTS_LIBRARY_NAME, partsLibraryName);
- } else {
- error = new AnalysisError(librarySource, 0, 0,
- ResolverErrorCode.MISSING_LIBRARY_DIRECTIVE_WITH_PART);
- }
- errors.add(error);
+ errors.add(new AnalysisError(librarySource, 0, 0,
+ ResolverErrorCode.MISSING_LIBRARY_DIRECTIVE_WITH_PART));
}
//
// Create and populate the library element.
« no previous file with comments | « pkg/analyzer/lib/error/listener.dart ('k') | pkg/analyzer/test/src/task/dart_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698