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

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

Issue 11464025: dart2js: complain about missing part-of tags. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address review comments Created 8 years 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 part of dart2js; 5 part of dart2js;
6 6
7 class MessageKind { 7 class MessageKind {
8 final String template; 8 final String template;
9 const MessageKind(this.template); 9 const MessageKind(this.template);
10 10
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 286
287 static const VOID_NOT_ALLOWED = const MessageKind( 287 static const VOID_NOT_ALLOWED = const MessageKind(
288 'type void is only allowed in a return type.'); 288 'type void is only allowed in a return type.');
289 289
290 static const BEFORE_TOP_LEVEL = const MessageKind( 290 static const BEFORE_TOP_LEVEL = const MessageKind(
291 'Error: part header must come before top-level definitions.'); 291 'Error: part header must come before top-level definitions.');
292 292
293 static const LIBRARY_NAME_MISMATCH = const MessageKind( 293 static const LIBRARY_NAME_MISMATCH = const MessageKind(
294 'Warning: expected part of library name "#{1}".'); 294 'Warning: expected part of library name "#{1}".');
295 295
296 static const MISSING_PART_OF_TAG = const MessageKind(
297 'Note: This file has no part-of tag, but it is being used as a part.');
298
296 static const DUPLICATED_PART_OF = const MessageKind( 299 static const DUPLICATED_PART_OF = const MessageKind(
297 'Error: duplicated part-of directive.'); 300 'Error: duplicated part-of directive.');
298 301
299 static const ILLEGAL_DIRECTIVE = const MessageKind( 302 static const ILLEGAL_DIRECTIVE = const MessageKind(
300 'Error: directive not allowed here.'); 303 'Error: directive not allowed here.');
301 304
302 static const DUPLICATED_LIBRARY_NAME = const MessageKind( 305 static const DUPLICATED_LIBRARY_NAME = const MessageKind(
303 'Warning: duplicated library name "#{1}".'); 306 'Warning: duplicated library name "#{1}".');
304 307
305 static const INVALID_SOURCE_FILE_LOCATION = const MessageKind(''' 308 static const INVALID_SOURCE_FILE_LOCATION = const MessageKind('''
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 438
436 class CompileTimeConstantError extends Diagnostic { 439 class CompileTimeConstantError extends Diagnostic {
437 CompileTimeConstantError(MessageKind kind, List arguments) 440 CompileTimeConstantError(MessageKind kind, List arguments)
438 : super(kind, arguments); 441 : super(kind, arguments);
439 } 442 }
440 443
441 class CompilationError extends Diagnostic { 444 class CompilationError extends Diagnostic {
442 CompilationError(MessageKind kind, List arguments) 445 CompilationError(MessageKind kind, List arguments)
443 : super(kind, arguments); 446 : super(kind, arguments);
444 } 447 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698