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

Unified Diff: pkg/analyzer/lib/src/generated/generated/shared_messages.dart

Issue 1660703002: Share the first error messages. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 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: pkg/analyzer/lib/src/generated/generated/shared_messages.dart
diff --git a/pkg/analyzer/lib/src/generated/generated/shared_messages.dart b/pkg/analyzer/lib/src/generated/generated/shared_messages.dart
index 2c1465c4eb7f52a04bd360caa5c1779c119516af..31574d5abc9502739ad36747527031f791002ffa 100644
--- a/pkg/analyzer/lib/src/generated/generated/shared_messages.dart
+++ b/pkg/analyzer/lib/src/generated/generated/shared_messages.dart
@@ -10,8 +10,13 @@ After any change to that file, run `bin/publish.dart` to generate a new version
of the json, dart2js and analyzer representations.
*/
import 'package:analyzer/src/generated/error.dart';
+import 'package:analyzer/src/generated/parser.dart' show ParserErrorCode;
-const AnalysisOptionsErrorCode exampleMessage = const AnalysisOptionsErrorCode(
- 'exampleMessage',
- "{2} {1} {0}",
- "an explanation on how to fix things"); // Generated. Don't edit.
+const ParserErrorCode CONST_CONSTRUCTOR_WITH_BODY = const ParserErrorCode(
+ 'CONST_CONSTRUCTOR_WITH_BODY',
+ "Const constructor or factory can't have a body.",
+ "Remove the 'const' keyword or the body."); // Generated. Don't edit.
+const ParserErrorCode CONST_FACTORY = const ParserErrorCode(
Brian Wilkerson 2016/02/03 00:27:12 nit: add a blank line between constants for readab
floitsch 2016/02/03 17:50:25 Done.
+ 'CONST_FACTORY',
+ "Only redirecting factory constructors can be declared to be 'const'",
+ "Remove the 'const' keyword or replace the body with '=' followed by a valid target"); // Generated. Don't edit.
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/parser.dart » ('j') | pkg/dart_messages/lib/generated/shared_messages.json » ('J')

Powered by Google App Engine
This is Rietveld 408576698