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

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

Issue 12041018: Disallow cyclic mixins. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 305
306 static const ILLEGAL_MIXIN_APPLICATION_MODIFIERS = const MessageKind( 306 static const ILLEGAL_MIXIN_APPLICATION_MODIFIERS = const MessageKind(
307 "Error: illegal mixin application modifiers: #{1}."); 307 "Error: illegal mixin application modifiers: #{1}.");
308 308
309 static const ILLEGAL_MIXIN_SUPERCLASS = const MessageKind( 309 static const ILLEGAL_MIXIN_SUPERCLASS = const MessageKind(
310 "Error: class used as mixin must have Object as superclass."); 310 "Error: class used as mixin must have Object as superclass.");
311 311
312 static const ILLEGAL_MIXIN_CONSTRUCTOR = const MessageKind( 312 static const ILLEGAL_MIXIN_CONSTRUCTOR = const MessageKind(
313 "Error: class used as mixin cannot have non-factory constructor."); 313 "Error: class used as mixin cannot have non-factory constructor.");
314 314
315 static const ILLEGAL_MIXIN_CYCLE = const MessageKind(
316 "Error: class used as mixin introduces mixin cycle: #{1} <-> #{2}.");
317
315 static const PARAMETER_NAME_EXPECTED = const MessageKind( 318 static const PARAMETER_NAME_EXPECTED = const MessageKind(
316 "Error: parameter name expected."); 319 "Error: parameter name expected.");
317 320
318 static const CANNOT_RESOLVE_GETTER = const MessageKind( 321 static const CANNOT_RESOLVE_GETTER = const MessageKind(
319 'cannot resolve getter.'); 322 'cannot resolve getter.');
320 323
321 static const CANNOT_RESOLVE_SETTER = const MessageKind( 324 static const CANNOT_RESOLVE_SETTER = const MessageKind(
322 'cannot resolve setter.'); 325 'cannot resolve setter.');
323 326
324 static const VOID_NOT_ALLOWED = const MessageKind( 327 static const VOID_NOT_ALLOWED = const MessageKind(
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
475 478
476 class CompileTimeConstantError extends Diagnostic { 479 class CompileTimeConstantError extends Diagnostic {
477 CompileTimeConstantError(MessageKind kind, List arguments) 480 CompileTimeConstantError(MessageKind kind, List arguments)
478 : super(kind, arguments); 481 : super(kind, arguments);
479 } 482 }
480 483
481 class CompilationError extends Diagnostic { 484 class CompilationError extends Diagnostic {
482 CompilationError(MessageKind kind, List arguments) 485 CompilationError(MessageKind kind, List arguments)
483 : super(kind, arguments); 486 : super(kind, arguments);
484 } 487 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698