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

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

Issue 27019003: Update check for cyclic typedefs. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add positive test Created 7 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 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 const DONT_KNOW_HOW_TO_FIX = ""; 7 const DONT_KNOW_HOW_TO_FIX = "";
8 8
9 /** 9 /**
10 * The messages in this file should meet the following guide lines: 10 * The messages in this file should meet the following guide lines:
(...skipping 666 matching lines...) Expand 10 before | Expand all | Expand 10 after
677 examples: const [""" 677 examples: const ["""
678 typedef G F(); // The return type 'G' is a self-reference through typedef 'G'. 678 typedef G F(); // The return type 'G' is a self-reference through typedef 'G'.
679 typedef F G(); // The return type 'F' is a self-reference through typedef 'F'. 679 typedef F G(); // The return type 'F' is a self-reference through typedef 'F'.
680 main() { F f = null; }""", 680 main() { F f = null; }""",
681 """ 681 """
682 typedef G F(); // The return type 'G' creates a self-reference. 682 typedef G F(); // The return type 'G' creates a self-reference.
683 typedef H G(); // The return type 'H' creates a self-reference. 683 typedef H G(); // The return type 'H' creates a self-reference.
684 typedef H(F f); // The argument type 'F' creates a self-reference. 684 typedef H(F f); // The argument type 'F' creates a self-reference.
685 main() { F f = null; }"""]); 685 main() { F f = null; }"""]);
686 686
687 static const CYCLIC_TYPEDEF_TYPEVAR = const MessageKind(
688 "Internal Error: Recursive type variable bounds are not "
689 "supported on typedefs.");
690
691 static const MessageKind CLASS_NAME_EXPECTED = const MessageKind( 687 static const MessageKind CLASS_NAME_EXPECTED = const MessageKind(
692 "Error: Class name expected."); 688 "Error: Class name expected.");
693 689
694 static const MessageKind CANNOT_EXTEND = const MessageKind( 690 static const MessageKind CANNOT_EXTEND = const MessageKind(
695 "Error: '#{type}' cannot be extended."); 691 "Error: '#{type}' cannot be extended.");
696 692
697 static const MessageKind CANNOT_IMPLEMENT = const MessageKind( 693 static const MessageKind CANNOT_IMPLEMENT = const MessageKind(
698 "Error: '#{type}' cannot be implemented."); 694 "Error: '#{type}' cannot be implemented.");
699 695
700 static const MessageKind CANNOT_MIXIN = const MessageKind( 696 static const MessageKind CANNOT_MIXIN = const MessageKind(
(...skipping 729 matching lines...) Expand 10 before | Expand all | Expand 10 after
1430 1426
1431 class CompileTimeConstantError extends Diagnostic { 1427 class CompileTimeConstantError extends Diagnostic {
1432 CompileTimeConstantError(MessageKind kind, Map arguments, bool terse) 1428 CompileTimeConstantError(MessageKind kind, Map arguments, bool terse)
1433 : super(kind, arguments, terse); 1429 : super(kind, arguments, terse);
1434 } 1430 }
1435 1431
1436 class CompilationError extends Diagnostic { 1432 class CompilationError extends Diagnostic {
1437 CompilationError(MessageKind kind, Map arguments, bool terse) 1433 CompilationError(MessageKind kind, Map arguments, bool terse)
1438 : super(kind, arguments, terse); 1434 : super(kind, arguments, terse);
1439 } 1435 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698