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

Unified Diff: frog/parser.dart

Issue 8591010: fix $this in string interpolation (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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/frogsh ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/parser.dart
diff --git a/frog/parser.dart b/frog/parser.dart
index 7c57cec3491e6019529871b7d4227c5073fbe209..7f2b246ac61f7a77486ae45c4806d9f650bc41d3 100644
--- a/frog/parser.dart
+++ b/frog/parser.dart
@@ -1094,6 +1094,8 @@ class Parser {
if (_maybeEat(TokenKind.LBRACE)) {
lits.add(expression());
_eat(TokenKind.RBRACE);
+ } else if (_maybeEat(TokenKind.THIS)) {
+ lits.add(new ThisExpression(_previousToken.span));
} else {
var id = identifier();
lits.add(new VarExpression(id, id.span));
« no previous file with comments | « frog/frogsh ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698