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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« frog/gen.dart ('K') | « frog/type.dart ('k') | no next file » | 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 /** 5 /**
6 * Represents a meta-value for code generation. 6 * Represents a meta-value for code generation.
7 */ 7 */
8 class Value { 8 class Value {
9 /** The [Type] of the [Value]. */ 9 /** The [Type] of the [Value]. */
10 Type type; 10 Type type;
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 } else { 170 } else {
171 world.warning(message, node.span); 171 world.warning(message, node.span);
172 } 172 }
173 } 173 }
174 } 174 }
175 175
176 // Fall back to a dynamic operation for instance members 176 // Fall back to a dynamic operation for instance members
177 if (member == null && !isSuper && !isType) { 177 if (member == null && !isSuper && !isType) {
178 member = context.findMembers(name); 178 member = context.findMembers(name);
179 if (member == null && !isDynamic) { 179 if (member == null && !isDynamic) {
180 world.warning('$name is not defined anywhere in the world.', 180 var where = 'the world';
181 if (name.startsWith('_')) {
182 where = 'library "${context.library.name}"';
jimhug 2011/12/14 19:00:57 Nice message fix.
183 }
184 world.warning('$name is not defined anywhere in $where.',
181 node.span); 185 node.span);
182 } 186 }
183 } 187 }
184 188
185 return member; 189 return member;
186 } 190 }
187 191
188 checkFirstClass(SourceSpan span) { 192 checkFirstClass(SourceSpan span) {
189 if (isType) { 193 if (isType) {
190 world.error('Types are not first class', span); 194 world.error('Types are not first class', span);
(...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after
714 // Then look for members in my library. 718 // Then look for members in my library.
715 member = home.library.lookup(name, span); 719 member = home.library.lookup(name, span);
716 if (member != null) { 720 if (member != null) {
717 return member; 721 return member;
718 } 722 }
719 723
720 _ensureCode(); 724 _ensureCode();
721 return null; 725 return null;
722 } 726 }
723 } 727 }
OLDNEW
« 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