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

Unified Diff: frog/scripts/token_info.py

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/parser.dart ('k') | frog/scripts/token_kind_gen.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/scripts/token_info.py
diff --git a/frog/scripts/token_info.py b/frog/scripts/token_info.py
index 86011e2c5873daa40818076039e2e81fbff61350..a9da8470d2376e65e69ef66686c1b3ae0fabe255 100644
--- a/frog/scripts/token_info.py
+++ b/frog/scripts/token_info.py
@@ -22,7 +22,7 @@ class Token:
EXCLUDES = ['!=', '===', '!==', '&&', '||']
INCLUDES = ['[]', '[]=', '~']
if text in INCLUDES or (self.precedence >= 6 and text not in EXCLUDES):
- self.methodName = '$' + name.lower()
+ self.methodName = ':' + name.lower()
else:
self.methodName = None
« no previous file with comments | « frog/parser.dart ('k') | frog/scripts/token_kind_gen.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698