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

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: Updated cf. comments. 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 682 matching lines...) Expand 10 before | Expand all | Expand 10 after
693 examples: const [""" 693 examples: const ["""
694 typedef G F(); // The return type 'G' is a self-reference through typedef 'G'. 694 typedef G F(); // The return type 'G' is a self-reference through typedef 'G'.
695 typedef F G(); // The return type 'F' is a self-reference through typedef 'F'. 695 typedef F G(); // The return type 'F' is a self-reference through typedef 'F'.
696 main() { F f = null; }""", 696 main() { F f = null; }""",
697 """ 697 """
698 typedef G F(); // The return type 'G' creates a self-reference. 698 typedef G F(); // The return type 'G' creates a self-reference.
699 typedef H G(); // The return type 'H' creates a self-reference. 699 typedef H G(); // The return type 'H' creates a self-reference.
700 typedef H(F f); // The argument type 'F' creates a self-reference. 700 typedef H(F f); // The argument type 'F' creates a self-reference.
701 main() { F f = null; }"""]); 701 main() { F f = null; }"""]);
702 702
703 static const CYCLIC_TYPEDEF_TYPEVAR = const MessageKind(
704 "Internal Error: Recursive type variable bounds are not "
705 "supported on typedefs.");
706
707 static const MessageKind CLASS_NAME_EXPECTED = const MessageKind( 703 static const MessageKind CLASS_NAME_EXPECTED = const MessageKind(
708 "Error: Class name expected."); 704 "Error: Class name expected.");
709 705
710 static const MessageKind CANNOT_EXTEND = const MessageKind( 706 static const MessageKind CANNOT_EXTEND = const MessageKind(
711 "Error: '#{type}' cannot be extended."); 707 "Error: '#{type}' cannot be extended.");
712 708
713 static const MessageKind CANNOT_IMPLEMENT = const MessageKind( 709 static const MessageKind CANNOT_IMPLEMENT = const MessageKind(
714 "Error: '#{type}' cannot be implemented."); 710 "Error: '#{type}' cannot be implemented.");
715 711
716 static const MessageKind CANNOT_EXTEND_MALFORMED = const MessageKind( 712 static const MessageKind CANNOT_EXTEND_MALFORMED = const MessageKind(
(...skipping 753 matching lines...) Expand 10 before | Expand all | Expand 10 after
1470 1466
1471 class CompileTimeConstantError extends Diagnostic { 1467 class CompileTimeConstantError extends Diagnostic {
1472 CompileTimeConstantError(MessageKind kind, Map arguments, bool terse) 1468 CompileTimeConstantError(MessageKind kind, Map arguments, bool terse)
1473 : super(kind, arguments, terse); 1469 : super(kind, arguments, terse);
1474 } 1470 }
1475 1471
1476 class CompilationError extends Diagnostic { 1472 class CompilationError extends Diagnostic {
1477 CompilationError(MessageKind kind, Map arguments, bool terse) 1473 CompilationError(MessageKind kind, Map arguments, bool terse)
1478 : super(kind, arguments, terse); 1474 : super(kind, arguments, terse);
1479 } 1475 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/resolution/members.dart ('k') | tests/language/cyclic_typedef_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698