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

Unified Diff: frog/token_kind.g.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/scripts/token_kind_gen.py ('k') | frog/type.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/token_kind.g.dart
diff --git a/frog/token_kind.g.dart b/frog/token_kind.g.dart
index f94597dc1447750f17ca43557ae8fe0ce6de09ab..98538346451937871e3bfe1bacf35e05d24108e4 100644
--- a/frog/token_kind.g.dart
+++ b/frog/token_kind.g.dart
@@ -519,52 +519,52 @@ class TokenKind {
static String rawOperatorFromMethod(String name) {
switch(name) {
- case '\$bit_not': return '~';
- case '\$bit_or': return '|';
- case '\$bit_xor': return '^';
- case '\$bit_and': return '&';
- case '\$shl': return '<<';
- case '\$sar': return '>>';
- case '\$shr': return '>>>';
- case '\$add': return '+';
- case '\$sub': return '-';
- case '\$mul': return '*';
- case '\$div': return '/';
- case '\$truncdiv': return '~/';
- case '\$mod': return '%';
- case '\$eq': return '==';
- case '\$lt': return '<';
- case '\$gt': return '>';
- case '\$lte': return '<=';
- case '\$gte': return '>=';
- case '\$index': return '[]';
- case '\$setindex': return '[]=';
- case '\$ne': return '!=';
+ case ':bit_not': return '~';
+ case ':bit_or': return '|';
+ case ':bit_xor': return '^';
+ case ':bit_and': return '&';
+ case ':shl': return '<<';
+ case ':sar': return '>>';
+ case ':shr': return '>>>';
+ case ':add': return '+';
+ case ':sub': return '-';
+ case ':mul': return '*';
+ case ':div': return '/';
+ case ':truncdiv': return '~/';
+ case ':mod': return '%';
+ case ':eq': return '==';
+ case ':lt': return '<';
+ case ':gt': return '>';
+ case ':lte': return '<=';
+ case ':gte': return '>=';
+ case ':index': return '[]';
+ case ':setindex': return '[]=';
+ case ':ne': return '!=';
}
}
static String binaryMethodName(int kind) {
switch(kind) {
- case BIT_NOT: return '\$bit_not';
- case BIT_OR: return '\$bit_or';
- case BIT_XOR: return '\$bit_xor';
- case BIT_AND: return '\$bit_and';
- case SHL: return '\$shl';
- case SAR: return '\$sar';
- case SHR: return '\$shr';
- case ADD: return '\$add';
- case SUB: return '\$sub';
- case MUL: return '\$mul';
- case DIV: return '\$div';
- case TRUNCDIV: return '\$truncdiv';
- case MOD: return '\$mod';
- case EQ: return '\$eq';
- case LT: return '\$lt';
- case GT: return '\$gt';
- case LTE: return '\$lte';
- case GTE: return '\$gte';
- case INDEX: return '\$index';
- case SETINDEX: return '\$setindex';
+ case BIT_NOT: return ':bit_not';
+ case BIT_OR: return ':bit_or';
+ case BIT_XOR: return ':bit_xor';
+ case BIT_AND: return ':bit_and';
+ case SHL: return ':shl';
+ case SAR: return ':sar';
+ case SHR: return ':shr';
+ case ADD: return ':add';
+ case SUB: return ':sub';
+ case MUL: return ':mul';
+ case DIV: return ':div';
+ case TRUNCDIV: return ':truncdiv';
+ case MOD: return ':mod';
+ case EQ: return ':eq';
+ case LT: return ':lt';
+ case GT: return ':gt';
+ case LTE: return ':lte';
+ case GTE: return ':gte';
+ case INDEX: return ':index';
+ case SETINDEX: return ':setindex';
}
}
« no previous file with comments | « frog/scripts/token_kind_gen.py ('k') | frog/type.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698