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

Side by Side Diff: sdk/lib/_internal/compiler/implementation/warnings.dart

Issue 11953012: Add more mixin tests and start rejecting illegal syntax. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update status files. Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 part of dart2js; 5 part of dart2js;
6 6
7 class MessageKind { 7 class MessageKind {
8 final String template; 8 final String template;
9 const MessageKind(this.template); 9 const MessageKind(this.template);
10 10
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 296
297 static const CONSTRUCTOR_WITH_RETURN_TYPE = const MessageKind( 297 static const CONSTRUCTOR_WITH_RETURN_TYPE = const MessageKind(
298 "Error: cannot have return type for constructor."); 298 "Error: cannot have return type for constructor.");
299 299
300 static const ILLEGAL_FINAL_METHOD_MODIFIER = const MessageKind( 300 static const ILLEGAL_FINAL_METHOD_MODIFIER = const MessageKind(
301 "Error: cannot have final modifier on method."); 301 "Error: cannot have final modifier on method.");
302 302
303 static const ILLEGAL_CONSTRUCTOR_MODIFIERS = const MessageKind( 303 static const ILLEGAL_CONSTRUCTOR_MODIFIERS = const MessageKind(
304 "Error: illegal constructor modifiers: #{1}."); 304 "Error: illegal constructor modifiers: #{1}.");
305 305
306 static const ILLEGAL_MIXIN_APPLICATION_MODIFIERS = const MessageKind(
307 "Error: illegal mixin application modifiers: #{1}.");
308
306 static const PARAMETER_NAME_EXPECTED = const MessageKind( 309 static const PARAMETER_NAME_EXPECTED = const MessageKind(
307 "Error: parameter name expected."); 310 "Error: parameter name expected.");
308 311
309 static const CANNOT_RESOLVE_GETTER = const MessageKind( 312 static const CANNOT_RESOLVE_GETTER = const MessageKind(
310 'cannot resolve getter.'); 313 'cannot resolve getter.');
311 314
312 static const CANNOT_RESOLVE_SETTER = const MessageKind( 315 static const CANNOT_RESOLVE_SETTER = const MessageKind(
313 'cannot resolve setter.'); 316 'cannot resolve setter.');
314 317
315 static const VOID_NOT_ALLOWED = const MessageKind( 318 static const VOID_NOT_ALLOWED = const MessageKind(
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
466 469
467 class CompileTimeConstantError extends Diagnostic { 470 class CompileTimeConstantError extends Diagnostic {
468 CompileTimeConstantError(MessageKind kind, List arguments) 471 CompileTimeConstantError(MessageKind kind, List arguments)
469 : super(kind, arguments); 472 : super(kind, arguments);
470 } 473 }
471 474
472 class CompilationError extends Diagnostic { 475 class CompilationError extends Diagnostic {
473 CompilationError(MessageKind kind, List arguments) 476 CompilationError(MessageKind kind, List arguments)
474 : super(kind, arguments); 477 : super(kind, arguments);
475 } 478 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698