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

Unified Diff: dart/lib/compiler/implementation/warnings.dart

Issue 10831332: Support new getter syntax. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address review comments and disable one test. Created 8 years, 4 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: dart/lib/compiler/implementation/warnings.dart
diff --git a/dart/lib/compiler/implementation/warnings.dart b/dart/lib/compiler/implementation/warnings.dart
index e938bbfab17b114555e9e74531b7ffa9475009fc..daf091ed5caa367c647f95296855c734fa1ed977 100644
--- a/dart/lib/compiler/implementation/warnings.dart
+++ b/dart/lib/compiler/implementation/warnings.dart
@@ -213,6 +213,12 @@ class MessageKind {
static final BAD_ARITY_OVERRIDE_CONT = const MessageKind(
"Info: this is the method whose parameters do not match.");
+ static final MISSING_FORMALS = const MessageKind(
+ "Error: Formal parameters are missing.");
+
+ static final EXTRA_FORMALS = const MessageKind(
+ "Error: Formal parameters not allowed here.");
+
static final COMPILER_CRASHED = const MessageKind(
"Error: The compiler crashed when compiling this element.");
@@ -237,11 +243,11 @@ Please include the following information:
toString() => template;
- Message message([List<Type> arguments = const <Type>[]]) {
ngeoffray 2012/08/20 14:17:41 Why this change?
ahe 2012/08/20 14:39:02 It was a bad cut-and-paste originally.
+ Message message([List arguments = const []]) {
return new Message(this, arguments);
}
- CompilationError error([List<Type> arguments = const <Type>[]]) {
+ CompilationError error([List arguments = const []]) {
return new CompilationError(this, arguments);
}
}
« no previous file with comments | « dart/lib/compiler/implementation/scanner/parser.dart ('k') | dart/tests/compiler/dart2js/unparser_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698