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

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

Issue 10628007: Resolve typedefs. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 6 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 class MessageKind { 5 class MessageKind {
6 final String template; 6 final String template;
7 const MessageKind(this.template); 7 const MessageKind(this.template);
8 8
9 static final GENERIC = const MessageKind('#{1}'); 9 static final GENERIC = const MessageKind('#{1}');
10 10
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 'map-literal key not a string literal'); 145 'map-literal key not a string literal');
146 146
147 static final NO_SUCH_LIBRARY_MEMBER = const MessageKind( 147 static final NO_SUCH_LIBRARY_MEMBER = const MessageKind(
148 '#{1} has no member named #{2}'); 148 '#{1} has no member named #{2}');
149 149
150 static final CANNOT_INSTANTIATE_INTERFACE = const MessageKind( 150 static final CANNOT_INSTANTIATE_INTERFACE = const MessageKind(
151 "cannot instantiate interface '#{1}'"); 151 "cannot instantiate interface '#{1}'");
152 152
153 static final CANNOT_INSTANTIATE_TYPEDEF = const MessageKind( 153 static final CANNOT_INSTANTIATE_TYPEDEF = const MessageKind(
154 "cannot instantiate typedef '#{1}'"); 154 "cannot instantiate typedef '#{1}'");
155 static final CYCLIC_TYPEDEF = const MessageKind(
156 "a typedef may not refer to the type it is defining");
155 157
156 static final NO_DEFAULT_CLASS = const MessageKind( 158 static final NO_DEFAULT_CLASS = const MessageKind(
157 "no default class on enclosing interface '#{1}'"); 159 "no default class on enclosing interface '#{1}'");
158 160
159 static final CYCLIC_TYPE_VARIABLE = const MessageKind( 161 static final CYCLIC_TYPE_VARIABLE = const MessageKind(
160 "cyclic reference to type variable #{1}"); 162 "cyclic reference to type variable #{1}");
161 static final TYPE_NAME_EXPECTED = const MessageKind( 163 static final TYPE_NAME_EXPECTED = const MessageKind(
162 "class or interface name expected"); 164 "class or interface name expected");
163 165
164 static final CANNOT_EXTEND = const MessageKind( 166 static final CANNOT_EXTEND = const MessageKind(
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 271
270 class CompileTimeConstantError extends Diagnostic { 272 class CompileTimeConstantError extends Diagnostic {
271 CompileTimeConstantError(MessageKind kind, List<Type> arguments) 273 CompileTimeConstantError(MessageKind kind, List<Type> arguments)
272 : super(kind, arguments); 274 : super(kind, arguments);
273 } 275 }
274 276
275 class CompilationError extends Diagnostic { 277 class CompilationError extends Diagnostic {
276 CompilationError(MessageKind kind, List<Type> arguments) 278 CompilationError(MessageKind kind, List<Type> arguments)
277 : super(kind, arguments); 279 : super(kind, arguments);
278 } 280 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698