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

Unified Diff: frog/library.dart

Issue 8763001: Fix names with '$' to not conflict with operators or internal helpers (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: merged again 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
« no previous file with comments | « frog/lib/natives.dart ('k') | frog/member.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/library.dart
diff --git a/frog/library.dart b/frog/library.dart
index 780f4a28deca1047fa5abcf25a650851c0b0836e..38b4539669e1cee8dc4db15b2309ec3622f70cdd 100644
--- a/frog/library.dart
+++ b/frog/library.dart
@@ -114,8 +114,8 @@ class Library extends Element {
// TODO(jimhug): This is redundant now that FunctionDef has type params.
final def = new FunctionTypeDefinition(func, null, func.span);
final type = new DefinedType(name, this, def, false);
- type.addMethod('\$call', func);
- var m = type.members['\$call'];
+ type.addMethod(':call', func);
+ var m = type.members[':call'];
m.enclosingElement = enclosingElement;
m.resolve();
// Function types implement the Function interface.
@@ -484,6 +484,6 @@ class _LibraryVisitor implements TreeVisitor {
void visitFunctionTypeDefinition(FunctionTypeDefinition node) {
var type = library.addType(node.func.name.name, node, false);
- type.addMethod('\$call', node.func);
+ type.addMethod(':call', node.func);
}
}
« no previous file with comments | « frog/lib/natives.dart ('k') | frog/member.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698