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

Unified Diff: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/ast/VariableDeclarationList.java

Issue 11364134: Merge libv1. (Closed) Base URL: https://dart.googlecode.com/svn/experimental/lib_v2/dart
Patch Set: Reupload due to error Created 8 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
Index: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/ast/VariableDeclarationList.java
diff --git a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/ast/VariableDeclarationList.java b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/ast/VariableDeclarationList.java
index 2e5bd0217fd0883656faaf173de55c41b583cda3..1b43a9dfcd75ff2650726b6521055fa11193b490 100644
--- a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/ast/VariableDeclarationList.java
+++ b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/ast/VariableDeclarationList.java
@@ -77,8 +77,10 @@ public class VariableDeclarationList extends ASTNode {
public Token getBeginToken() {
if (keyword != null) {
return keyword;
+ } else if (type != null) {
+ return type.getBeginToken();
}
- return type.getBeginToken();
+ return variables.getBeginToken();
}
@Override

Powered by Google App Engine
This is Rietveld 408576698