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

Side by Side Diff: pkg/compiler/lib/src/warnings.dart

Issue 1227353002: Refactor handling of library prefixes. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Update unittest expectations. Created 5 years, 5 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
« no previous file with comments | « pkg/compiler/lib/src/resolution/members.dart ('k') | tests/co19/co19-dart2js.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 part of dart2js; 5 part of dart2js;
6 6
7 const DONT_KNOW_HOW_TO_FIX = "Computer says no!"; 7 const DONT_KNOW_HOW_TO_FIX = "Computer says no!";
8 8
9 /** 9 /**
10 * The messages in this file should meet the following guide lines: 10 * The messages in this file should meet the following guide lines:
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 394
395 static const MessageKind DUPLICATE_EXPORT_DECL = const MessageKind( 395 static const MessageKind DUPLICATE_EXPORT_DECL = const MessageKind(
396 "The exported '#{name}' from export #{uriString} is defined here."); 396 "The exported '#{name}' from export #{uriString} is defined here.");
397 397
398 static const MessageKind NOT_A_TYPE = const MessageKind( 398 static const MessageKind NOT_A_TYPE = const MessageKind(
399 "'#{node}' is not a type."); 399 "'#{node}' is not a type.");
400 400
401 static const MessageKind NOT_A_PREFIX = const MessageKind( 401 static const MessageKind NOT_A_PREFIX = const MessageKind(
402 "'#{node}' is not a prefix."); 402 "'#{node}' is not a prefix.");
403 403
404 static const MessageKind PREFIX_AS_EXPRESSION = const MessageKind(
405 "Library prefix '#{prefix}' is not a valid expression.");
406
404 static const MessageKind CANNOT_FIND_CONSTRUCTOR = const MessageKind( 407 static const MessageKind CANNOT_FIND_CONSTRUCTOR = const MessageKind(
405 "Cannot find constructor '#{constructorName}'."); 408 "Cannot find constructor '#{constructorName}'.");
406 409
407 static const MessageKind CYCLIC_CLASS_HIERARCHY = const MessageKind( 410 static const MessageKind CYCLIC_CLASS_HIERARCHY = const MessageKind(
408 "'#{className}' creates a cycle in the class hierarchy."); 411 "'#{className}' creates a cycle in the class hierarchy.");
409 412
410 static const MessageKind CYCLIC_REDIRECTING_FACTORY = const MessageKind( 413 static const MessageKind CYCLIC_REDIRECTING_FACTORY = const MessageKind(
411 'Redirecting factory leads to a cyclic redirection.'); 414 'Redirecting factory leads to a cyclic redirection.');
412 415
413 static const MessageKind INVALID_RECEIVER_IN_INITIALIZER = const MessageKind( 416 static const MessageKind INVALID_RECEIVER_IN_INITIALIZER = const MessageKind(
(...skipping 2199 matching lines...) Expand 10 before | Expand all | Expand 10 after
2613 static String convertToString(value) { 2616 static String convertToString(value) {
2614 if (value is ErrorToken) { 2617 if (value is ErrorToken) {
2615 // Shouldn't happen. 2618 // Shouldn't happen.
2616 return value.assertionMessage; 2619 return value.assertionMessage;
2617 } else if (value is Token) { 2620 } else if (value is Token) {
2618 value = value.value; 2621 value = value.value;
2619 } 2622 }
2620 return '$value'; 2623 return '$value';
2621 } 2624 }
2622 } 2625 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/resolution/members.dart ('k') | tests/co19/co19-dart2js.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698