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

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

Issue 10447088: Add a new magic element type for annotating types that have Javascript array behavior. (Closed) Base URL: http://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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 155
156 static final NO_DEFAULT_CLASS = const MessageKind( 156 static final NO_DEFAULT_CLASS = const MessageKind(
157 "no default class on enclosing interface '#{1}'"); 157 "no default class on enclosing interface '#{1}'");
158 158
159 static final CYCLIC_TYPE_VARIABLE = const MessageKind( 159 static final CYCLIC_TYPE_VARIABLE = const MessageKind(
160 "cyclic reference to type variable #{1}"); 160 "cyclic reference to type variable #{1}");
161 static final TYPE_NAME_EXPECTED = const MessageKind( 161 static final TYPE_NAME_EXPECTED = const MessageKind(
162 "class or interface name exptected"); 162 "class or interface name expected");
163 163
164 static final CANNOT_EXTEND = const MessageKind( 164 static final CANNOT_EXTEND = const MessageKind(
165 "#{1} cannot be extended"); 165 "#{1} cannot be extended");
166 166
167 static final CANNOT_IMPLEMENT = const MessageKind( 167 static final CANNOT_IMPLEMENT = const MessageKind(
168 "#{1} cannot be implemented"); 168 "#{1} cannot be implemented");
169 169
170 static final ILLEGAL_SUPER_SEND = const MessageKind( 170 static final ILLEGAL_SUPER_SEND = const MessageKind(
171 "#{1} cannot be called on super"); 171 "#{1} cannot be called on super");
172 172
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 266
267 class CompileTimeConstantError extends Diagnostic { 267 class CompileTimeConstantError extends Diagnostic {
268 CompileTimeConstantError(MessageKind kind, List<Type> arguments) 268 CompileTimeConstantError(MessageKind kind, List<Type> arguments)
269 : super(kind, arguments); 269 : super(kind, arguments);
270 } 270 }
271 271
272 class CompilationError extends Diagnostic { 272 class CompilationError extends Diagnostic {
273 CompilationError(MessageKind kind, List<Type> arguments) 273 CompilationError(MessageKind kind, List<Type> arguments)
274 : super(kind, arguments); 274 : super(kind, arguments);
275 } 275 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698