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

Unified Diff: compiler/java/com/google/dart/compiler/ast/DartWhileStatement.java

Issue 10913112: Clean ups for trailing whitespace and block style (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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
Index: compiler/java/com/google/dart/compiler/ast/DartWhileStatement.java
diff --git a/compiler/java/com/google/dart/compiler/ast/DartWhileStatement.java b/compiler/java/com/google/dart/compiler/ast/DartWhileStatement.java
index 22d56dd4c80c7c5748e98d77023b013cf20a87c7..aaa975e300f938843aba2f738db0c92ef116634f 100644
--- a/compiler/java/com/google/dart/compiler/ast/DartWhileStatement.java
+++ b/compiler/java/com/google/dart/compiler/ast/DartWhileStatement.java
@@ -10,10 +10,12 @@ package com.google.dart.compiler.ast;
public class DartWhileStatement extends DartStatement {
private DartExpression condition;
+ private final int closeParenOffset;
private DartStatement body;
- public DartWhileStatement(DartExpression condition, DartStatement body) {
+ public DartWhileStatement(DartExpression condition, int closeParenOffset, DartStatement body) {
this.condition = becomeParentOf(condition);
+ this.closeParenOffset = closeParenOffset;
this.body = becomeParentOf(body);
}
@@ -24,6 +26,10 @@ public class DartWhileStatement extends DartStatement {
public DartExpression getCondition() {
return condition;
}
+
+ public int getCloseParenOffset() {
+ return closeParenOffset;
+ }
@Override
public void visitChildren(ASTVisitor<?> visitor) {

Powered by Google App Engine
This is Rietveld 408576698