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

Unified Diff: frog/value.dart

Issue 8588060: Fixes to get Swarm demo working again. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: merged Created 9 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« frog/gen.dart ('K') | « frog/type.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/value.dart
diff --git a/frog/value.dart b/frog/value.dart
index 8c357ae85dd359a161d3c6117d02234c274a8e32..f58983f9385dd8662f7cc4981f767ef559359ae0 100644
--- a/frog/value.dart
+++ b/frog/value.dart
@@ -177,7 +177,11 @@ class Value {
if (member == null && !isSuper && !isType) {
member = context.findMembers(name);
if (member == null && !isDynamic) {
- world.warning('$name is not defined anywhere in the world.',
+ var where = 'the world';
+ if (name.startsWith('_')) {
+ where = 'library "${context.library.name}"';
jimhug 2011/12/14 19:00:57 Nice message fix.
+ }
+ world.warning('$name is not defined anywhere in $where.',
node.span);
}
}
« frog/gen.dart ('K') | « frog/type.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698