| Index: editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/editor/selectionactions/StructureSelectNextAction.java
|
| diff --git a/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/editor/selectionactions/StructureSelectNextAction.java b/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/editor/selectionactions/StructureSelectNextAction.java
|
| index 123f4d4bf7667b5982876c308ebeef0945e56539..07cbb8ef716a788a4b1947fedc7eea56e0e7c19c 100644
|
| --- a/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/editor/selectionactions/StructureSelectNextAction.java
|
| +++ b/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/editor/selectionactions/StructureSelectNextAction.java
|
| @@ -13,8 +13,8 @@
|
| */
|
| package com.google.dart.tools.ui.internal.text.editor.selectionactions;
|
|
|
| -import com.google.dart.compiler.ast.DartNode;
|
| import com.google.dart.compiler.ast.ASTVisitor;
|
| +import com.google.dart.compiler.ast.DartNode;
|
| import com.google.dart.tools.core.model.DartModelException;
|
| import com.google.dart.tools.core.model.SourceRange;
|
| import com.google.dart.tools.core.model.SourceReference;
|
| @@ -44,8 +44,8 @@ public class StructureSelectNextAction extends StructureSelectionAction {
|
|
|
| @Override
|
| public Void visitNode(DartNode node) {
|
| - int start = node.getSourceStart();
|
| - int end = start + node.getSourceLength();
|
| + int start = node.getSourceInfo().getOffset();
|
| + int end = start + node.getSourceInfo().getLength();
|
| if (start == fOffset) {
|
| fNextNode = node;
|
| super.visitNode(node);
|
| @@ -114,8 +114,8 @@ public class StructureSelectNextAction extends StructureSelectionAction {
|
| return getSelectedNodeSourceRange(sr, first.getParent());
|
| }
|
| int offset = oldSourceRange.getOffset();
|
| - int end = Math.min(sr.getSourceRange().getLength(),
|
| - nextNode.getSourceStart() + nextNode.getSourceLength() - 1);
|
| + int end = Math.min(sr.getSourceRange().getLength(), nextNode.getSourceInfo().getOffset()
|
| + + nextNode.getSourceInfo().getLength() - 1);
|
| return StructureSelectionAction.createSourceRange(offset, end);
|
| }
|
| }
|
|
|