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

Unified Diff: pkg/analyzer/lib/src/error/codes.dart

Issue 2401463004: Issue 27515. Report DUPLICATE_PAR when the same library contains two part directives with the same … (Closed)
Patch Set: Created 4 years, 2 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 | « no previous file | pkg/analyzer/lib/src/task/dart.dart » ('j') | pkg/analyzer/lib/src/task/dart.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/error/codes.dart
diff --git a/pkg/analyzer/lib/src/error/codes.dart b/pkg/analyzer/lib/src/error/codes.dart
index 06d6ae3d7af7a926896acd173100560f907773d6..7d9eec5a84b97e3da242c27e3ac0e2a77deb78a9 100644
--- a/pkg/analyzer/lib/src/error/codes.dart
+++ b/pkg/analyzer/lib/src/error/codes.dart
@@ -752,6 +752,17 @@ class CompileTimeErrorCode extends ErrorCode {
'DUPLICATE_DEFINITION', "The name '{0}' is already defined");
/**
+ * 18.3 Parts: It's a compile-time error if the same library contains two part
+ * directives with the same URI.
+ *
+ * Parameters:
+ * 0: the URI of the duplicate part
+ */
+ static const CompileTimeErrorCode DUPLICATE_PART = const CompileTimeErrorCode(
+ 'DUPLICATE_PART',
+ "The library already contains a part with the uri '{0}'.");
+
+ /**
* 7. Classes: It is a compile-time error if a class has an instance member
* and a static member with the same name.
*
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/task/dart.dart » ('j') | pkg/analyzer/lib/src/task/dart.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698