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

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

Issue 10540052: Only generate assert in checked mode. (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
« no previous file with comments | « lib/compiler/implementation/tree/nodes.dart ('k') | tests/co19/co19-leg.status » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
173 static final ADDITIONAL_TYPE_ARGUMENT = const MessageKind( 173 static final ADDITIONAL_TYPE_ARGUMENT = const MessageKind(
174 "additional type argument"); 174 "additional type argument");
175 175
176 static final MISSING_TYPE_ARGUMENT = const MessageKind( 176 static final MISSING_TYPE_ARGUMENT = const MessageKind(
177 "missing type argument"); 177 "missing type argument");
178 178
179 static final MISSING_ARGUMENTS_TO_ASSERT = const MessageKind(
180 "missing arguments to assert");
181
179 static final COMPILER_CRASHED = const MessageKind( 182 static final COMPILER_CRASHED = const MessageKind(
180 "Error: The compiler crashed when compiling this element."); 183 "Error: The compiler crashed when compiling this element.");
181 184
182 static final PLEASE_REPORT_THE_CRASH = const MessageKind(''' 185 static final PLEASE_REPORT_THE_CRASH = const MessageKind('''
183 The compiler is broken. 186 The compiler is broken.
184 187
185 When compiling the above element, the compiler crashed. It is not 188 When compiling the above element, the compiler crashed. It is not
186 possible to tell if this is caused by a problem in your program or 189 possible to tell if this is caused by a problem in your program or
187 not. Regardless, the compiler should not crash. 190 not. Regardless, the compiler should not crash.
188 191
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 269
267 class CompileTimeConstantError extends Diagnostic { 270 class CompileTimeConstantError extends Diagnostic {
268 CompileTimeConstantError(MessageKind kind, List<Type> arguments) 271 CompileTimeConstantError(MessageKind kind, List<Type> arguments)
269 : super(kind, arguments); 272 : super(kind, arguments);
270 } 273 }
271 274
272 class CompilationError extends Diagnostic { 275 class CompilationError extends Diagnostic {
273 CompilationError(MessageKind kind, List<Type> arguments) 276 CompilationError(MessageKind kind, List<Type> arguments)
274 : super(kind, arguments); 277 : super(kind, arguments);
275 } 278 }
OLDNEW
« no previous file with comments | « lib/compiler/implementation/tree/nodes.dart ('k') | tests/co19/co19-leg.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698