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

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

Issue 13261008: Check for cyclic reference in typedefs (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove travesal visitor Created 7 years, 3 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 373 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 384
385 static const MessageKind CANNOT_INSTANTIATE_TYPEDEF = const MessageKind( 385 static const MessageKind CANNOT_INSTANTIATE_TYPEDEF = const MessageKind(
386 'Error: Cannot instantiate typedef "#{typedefName}".'); 386 'Error: Cannot instantiate typedef "#{typedefName}".');
387 387
388 static const MessageKind CANNOT_INSTANTIATE_TYPE_VARIABLE = const MessageKind( 388 static const MessageKind CANNOT_INSTANTIATE_TYPE_VARIABLE = const MessageKind(
389 'Error: Cannot instantiate type variable "#{typeVariableName}".'); 389 'Error: Cannot instantiate type variable "#{typeVariableName}".');
390 390
391 static const MessageKind CYCLIC_TYPE_VARIABLE = const MessageKind( 391 static const MessageKind CYCLIC_TYPE_VARIABLE = const MessageKind(
392 'Warning: Type variable "#{typeVariableName}" is a supertype of itself.'); 392 'Warning: Type variable "#{typeVariableName}" is a supertype of itself.');
393 393
394 static const CYCLIC_TYPEDEF = const MessageKind(
karlklose 2013/09/17 08:56:15 Please add a '.' to the end of the messages. I th
Johnni Winther 2013/09/18 07:57:15 Done.
395 "Error: Typedef #{typedefName} refers to itself");
396
397 static const CYCLIC_TYPEDEF_ONE = const MessageKind(
398 "Error: Typedef #{typedefName} refers to itself through "
399 "typedef #{otherTypedefName}");
400
401 static const CYCLIC_TYPEDEF_TYPEVAR = const MessageKind(
402 "Internal Error: Recursive type variable bounds are not currently "
karlklose 2013/09/17 08:56:15 Please remove 'currently'.
Johnni Winther 2013/09/18 07:57:15 Done.
403 "supported on typedefs.");
404
394 static const MessageKind CLASS_NAME_EXPECTED = const MessageKind( 405 static const MessageKind CLASS_NAME_EXPECTED = const MessageKind(
395 'Error: Class name expected.'); 406 'Error: Class name expected.');
396 407
397 static const MessageKind CANNOT_EXTEND = const MessageKind( 408 static const MessageKind CANNOT_EXTEND = const MessageKind(
398 'Error: "#{type}" cannot be extended.'); 409 'Error: "#{type}" cannot be extended.');
399 410
400 static const MessageKind CANNOT_IMPLEMENT = const MessageKind( 411 static const MessageKind CANNOT_IMPLEMENT = const MessageKind(
401 'Error: "#{type}" cannot be implemented.'); 412 'Error: "#{type}" cannot be implemented.');
402 413
403 static const MessageKind DUPLICATE_EXTENDS_IMPLEMENTS = const MessageKind( 414 static const MessageKind DUPLICATE_EXTENDS_IMPLEMENTS = const MessageKind(
(...skipping 618 matching lines...) Expand 10 before | Expand all | Expand 10 after
1022 1033
1023 class CompileTimeConstantError extends Diagnostic { 1034 class CompileTimeConstantError extends Diagnostic {
1024 CompileTimeConstantError(MessageKind kind, Map arguments, bool terse) 1035 CompileTimeConstantError(MessageKind kind, Map arguments, bool terse)
1025 : super(kind, arguments, terse); 1036 : super(kind, arguments, terse);
1026 } 1037 }
1027 1038
1028 class CompilationError extends Diagnostic { 1039 class CompilationError extends Diagnostic {
1029 CompilationError(MessageKind kind, Map arguments, bool terse) 1040 CompilationError(MessageKind kind, Map arguments, bool terse)
1030 : super(kind, arguments, terse); 1041 : super(kind, arguments, terse);
1031 } 1042 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698