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

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

Issue 10890007: Remove more warnings. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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
« no previous file with comments | « lib/compiler/implementation/tree/prettyprint.dart ('k') | no next file » | 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 const GENERIC = const MessageKind('#{1}'); 9 static const GENERIC = const MessageKind('#{1}');
10 10
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 if (object is SourceString) { 290 if (object is SourceString) {
291 return object.slowToString(); 291 return object.slowToString();
292 } else { 292 } else {
293 return object.toString(); 293 return object.toString();
294 } 294 }
295 } 295 }
296 } 296 }
297 297
298 class Diagnostic { 298 class Diagnostic {
299 final Message message; 299 final Message message;
300 Diagnostic(MessageKind kind, List<Type> arguments) 300 Diagnostic(MessageKind kind, List arguments)
301 : message = new Message(kind, arguments); 301 : message = new Message(kind, arguments);
302 String toString() => message.toString(); 302 String toString() => message.toString();
303 } 303 }
304 304
305 class TypeWarning extends Diagnostic { 305 class TypeWarning extends Diagnostic {
306 TypeWarning(MessageKind kind, List<Type> arguments) 306 TypeWarning(MessageKind kind, List arguments)
307 : super(kind, arguments); 307 : super(kind, arguments);
308 } 308 }
309 309
310 class ResolutionError extends Diagnostic { 310 class ResolutionError extends Diagnostic {
311 ResolutionError(MessageKind kind, List<Type> arguments) 311 ResolutionError(MessageKind kind, List arguments)
312 : super(kind, arguments); 312 : super(kind, arguments);
313 } 313 }
314 314
315 class ResolutionWarning extends Diagnostic { 315 class ResolutionWarning extends Diagnostic {
316 ResolutionWarning(MessageKind kind, List<Type> arguments) 316 ResolutionWarning(MessageKind kind, List arguments)
317 : super(kind, arguments); 317 : super(kind, arguments);
318 } 318 }
319 319
320 class CompileTimeConstantError extends Diagnostic { 320 class CompileTimeConstantError extends Diagnostic {
321 CompileTimeConstantError(MessageKind kind, List<Type> arguments) 321 CompileTimeConstantError(MessageKind kind, List arguments)
322 : super(kind, arguments); 322 : super(kind, arguments);
323 } 323 }
324 324
325 class CompilationError extends Diagnostic { 325 class CompilationError extends Diagnostic {
326 CompilationError(MessageKind kind, List<Type> arguments) 326 CompilationError(MessageKind kind, List arguments)
327 : super(kind, arguments); 327 : super(kind, arguments);
328 } 328 }
OLDNEW
« no previous file with comments | « lib/compiler/implementation/tree/prettyprint.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698