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

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: Rebased Created 7 years, 8 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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 186
187 static const CANNOT_INSTANTIATE_TYPE_VARIABLE = const MessageKind( 187 static const CANNOT_INSTANTIATE_TYPE_VARIABLE = const MessageKind(
188 "cannot instantiate type variable '#{typeVariableName}'"); 188 "cannot instantiate type variable '#{typeVariableName}'");
189 189
190 static const NO_DEFAULT_CLASS = const MessageKind( 190 static const NO_DEFAULT_CLASS = const MessageKind(
191 "no default class on enclosing interface '#{interfaceName}'"); 191 "no default class on enclosing interface '#{interfaceName}'");
192 192
193 static const CYCLIC_TYPE_VARIABLE = const MessageKind( 193 static const CYCLIC_TYPE_VARIABLE = const MessageKind(
194 "cyclic reference to type variable #{typeVariableName}"); 194 "cyclic reference to type variable #{typeVariableName}");
195 195
196 static const CYCLIC_TYPEDEF = const MessageKind(
197 "typedef #{typedefName} refers to itself");
198
199 static const CYCLIC_TYPEDEF_ONE = const MessageKind(
200 "typedef #{typedefName} refers to itself through "
201 "typedef #{otherTypedefName}");
202
203 static const CYCLIC_TYPEDEF_MORE = const MessageKind(
204 "typedef #{typedefName} refers to itself through several typedefs");
205
196 static const CLASS_NAME_EXPECTED = const MessageKind( 206 static const CLASS_NAME_EXPECTED = const MessageKind(
197 "class name expected"); 207 "class name expected");
198 208
199 static const INTERFACE_TYPE_EXPECTED = const MessageKind( 209 static const INTERFACE_TYPE_EXPECTED = const MessageKind(
200 "interface type expected"); 210 "interface type expected");
201 211
202 static const CANNOT_EXTEND = const MessageKind( 212 static const CANNOT_EXTEND = const MessageKind(
203 "#{type} cannot be extended"); 213 "#{type} cannot be extended");
204 214
205 static const CANNOT_IMPLEMENT = const MessageKind( 215 static const CANNOT_IMPLEMENT = const MessageKind(
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after
574 584
575 class CompileTimeConstantError extends Diagnostic { 585 class CompileTimeConstantError extends Diagnostic {
576 CompileTimeConstantError(MessageKind kind, [Map arguments = const {}]) 586 CompileTimeConstantError(MessageKind kind, [Map arguments = const {}])
577 : super(kind, arguments); 587 : super(kind, arguments);
578 } 588 }
579 589
580 class CompilationError extends Diagnostic { 590 class CompilationError extends Diagnostic {
581 CompilationError(MessageKind kind, [Map arguments = const {}]) 591 CompilationError(MessageKind kind, [Map arguments = const {}])
582 : super(kind, arguments); 592 : super(kind, arguments);
583 } 593 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698