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

Unified Diff: lib/compiler/implementation/tree/nodes.dart

Issue 10697003: Various token issues fixed in the compiler (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: SendSet.getBeginToken/getEndToken implemented Created 8 years, 6 months 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/tree/nodes.dart
diff --git a/lib/compiler/implementation/tree/nodes.dart b/lib/compiler/implementation/tree/nodes.dart
index 3024b94c0123ce804e13255f8ff733c47706437b..31a392c744abbac48924d23b5a8ec090da40ebba 100644
--- a/lib/compiler/implementation/tree/nodes.dart
+++ b/lib/compiler/implementation/tree/nodes.dart
@@ -349,6 +349,16 @@ class SendSet extends Send {
return new SendSet(newReceiver, selector, assignmentOperator,
argumentsNode);
}
+
+ Token getBeginToken() {
+ if (isPrefix) return assignmentOperator.getBeginToken();
+ return super.getBeginToken();
+ }
+
+ Token getEndToken() {
+ if (isPrefix) return super.getEndToken();
floitsch 2012/06/27 14:06:48 as discussed this won't work in all situations.
+ return assignmentOperator.getEndToken();
+ }
}
class NewExpression extends Expression {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698