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

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

Issue 11092003: Implement part-of directive. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Update co19 status for dart2dart 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 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 252
253 static const CANNOT_RESOLVE_GETTER = const MessageKind( 253 static const CANNOT_RESOLVE_GETTER = const MessageKind(
254 'cannot resolve getter.'); 254 'cannot resolve getter.');
255 255
256 static const CANNOT_RESOLVE_SETTER = const MessageKind( 256 static const CANNOT_RESOLVE_SETTER = const MessageKind(
257 'cannot resolve setter.'); 257 'cannot resolve setter.');
258 258
259 static const VOID_NOT_ALLOWED = const MessageKind( 259 static const VOID_NOT_ALLOWED = const MessageKind(
260 'type void is only allowed in a return type.'); 260 'type void is only allowed in a return type.');
261 261
262 static const BEFORE_TOP_LEVEL = const MessageKind(
263 'Error: part header must come before top-level definitions.');
Johnni Winther 2012/10/09 07:43:36 Why do some messages include 'Error:' and 'Warning
ahe 2012/10/09 07:48:09 Historic reasons.
karlklose 2012/10/09 07:49:47 See also http://code.google.com/p/dart/issues/deta
264
265 static const LIBRARY_NAME_MISMATCH = const MessageKind(
266 'Warning: expected part of library name "#{1}".');
267
268 static const DUPLICATED_PART_OF = const MessageKind(
269 'Error: duplicated part-of directive.');
270
271 static const ILLEGAL_DIRECTIVE = const MessageKind(
272 'Error: directive not allowed here.');
273
274 static const DUPLICATED_LIBRARY_NAME = const MessageKind(
275 'Warning: duplicated library name "#{1}".');
276
262 static const INVALID_SOURCE_FILE_LOCATION = const MessageKind(''' 277 static const INVALID_SOURCE_FILE_LOCATION = const MessageKind('''
263 Invalid offset (#{1}) in source map. 278 Invalid offset (#{1}) in source map.
264 File: #{2} 279 File: #{2}
265 Length: #{3}'''); 280 Length: #{3}''');
266 281
267 static const PATCH_RETURN_TYPE_MISMATCH = const MessageKind( 282 static const PATCH_RETURN_TYPE_MISMATCH = const MessageKind(
268 "Patch return type '#{3}' doesn't match '#{2}' on origin method '#{1}'."); 283 "Patch return type '#{3}' doesn't match '#{2}' on origin method '#{1}'.");
269 284
270 static const PATCH_REQUIRED_PARAMETER_COUNT_MISMATCH = const MessageKind( 285 static const PATCH_REQUIRED_PARAMETER_COUNT_MISMATCH = const MessageKind(
271 "Required parameter count of patch method (#{3}) doesn't match parameter " 286 "Required parameter count of patch method (#{3}) doesn't match parameter "
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 389
375 class CompileTimeConstantError extends Diagnostic { 390 class CompileTimeConstantError extends Diagnostic {
376 CompileTimeConstantError(MessageKind kind, List arguments) 391 CompileTimeConstantError(MessageKind kind, List arguments)
377 : super(kind, arguments); 392 : super(kind, arguments);
378 } 393 }
379 394
380 class CompilationError extends Diagnostic { 395 class CompilationError extends Diagnostic {
381 CompilationError(MessageKind kind, List arguments) 396 CompilationError(MessageKind kind, List arguments)
382 : super(kind, arguments); 397 : super(kind, arguments);
383 } 398 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698