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

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

Issue 10905305: Patch refactoring. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Replaced includeInjectedMembers by implementation Created 8 years, 2 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 const GENERIC = const MessageKind('#{1}'); 9 static const GENERIC = const MessageKind('#{1}');
10 10
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 "Error: parameter name expected."); 248 "Error: parameter name expected.");
249 249
250 static const CANNOT_RESOLVE_GETTER = const MessageKind( 250 static const CANNOT_RESOLVE_GETTER = const MessageKind(
251 'cannot resolve getter.'); 251 'cannot resolve getter.');
252 252
253 static const CANNOT_RESOLVE_SETTER = const MessageKind( 253 static const CANNOT_RESOLVE_SETTER = const MessageKind(
254 'cannot resolve setter.'); 254 'cannot resolve setter.');
255 255
256 static const VOID_NOT_ALLOWED = const MessageKind( 256 static const VOID_NOT_ALLOWED = const MessageKind(
257 'type void is only allowed in a return type.'); 257 'type void is only allowed in a return type.');
258 258
ahe 2012/10/02 13:27:04 Why this change?
Johnni Winther 2012/10/03 09:22:59 There was more code here at an intermediate step.
259
259 static const COMPILER_CRASHED = const MessageKind( 260 static const COMPILER_CRASHED = const MessageKind(
260 "Error: The compiler crashed when compiling this element."); 261 "Error: The compiler crashed when compiling this element.");
261 262
262 static const PLEASE_REPORT_THE_CRASH = const MessageKind(''' 263 static const PLEASE_REPORT_THE_CRASH = const MessageKind('''
263 The compiler is broken. 264 The compiler is broken.
264 265
265 When compiling the above element, the compiler crashed. It is not 266 When compiling the above element, the compiler crashed. It is not
266 possible to tell if this is caused by a problem in your program or 267 possible to tell if this is caused by a problem in your program or
267 not. Regardless, the compiler should not crash. 268 not. Regardless, the compiler should not crash.
268 269
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 347
347 class CompileTimeConstantError extends Diagnostic { 348 class CompileTimeConstantError extends Diagnostic {
348 CompileTimeConstantError(MessageKind kind, List arguments) 349 CompileTimeConstantError(MessageKind kind, List arguments)
349 : super(kind, arguments); 350 : super(kind, arguments);
350 } 351 }
351 352
352 class CompilationError extends Diagnostic { 353 class CompilationError extends Diagnostic {
353 CompilationError(MessageKind kind, List arguments) 354 CompilationError(MessageKind kind, List arguments)
354 : super(kind, arguments); 355 : super(kind, arguments);
355 } 356 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698