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

Unified Diff: frog/frogsh

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 | « no previous file | frog/parser.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/frogsh
diff --git a/frog/frogsh b/frog/frogsh
index edef41590c6379fed71cb0e8bc034f0f74b722ca..04d00eca072d5de1334840a2d613ac82e628ff19 100755
--- a/frog/frogsh
+++ b/frog/frogsh
@@ -17351,6 +17351,9 @@ lang_Parser.prototype.stringInterpolation = function() {
lits.add$1(this.expression());
this._eat(7/*TokenKind.RBRACE*/);
}
+ else if ($notnull_bool(this._maybeEat(108/*TokenKind.THIS*/))) {
+ lits.add$1(new ThisExpression(this._previousToken.get$span()));
+ }
else {
var id = this.identifier();
lits.add$1(new VarExpression(id, id.get$span()));
@@ -17518,7 +17521,7 @@ lang_Parser.parseHex = function(hex) {
for (var i = 0;
i < hex.length; i++) {
var digit = lang_Parser._hexDigit(hex.charCodeAt(i));
- $assert($ne(digit, -1), "digit != -1", "parser.dart", 1259, 14);
+ $assert($ne(digit, -1), "digit != -1", "parser.dart", 1261, 14);
result = (result << 4) + $assert_num(digit);
}
return $assert_num(result);
« no previous file with comments | « no previous file | frog/parser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698