Navigation to iterator(), next(), hasNext() through 'in' in for-loops
This commit is contained in:
@@ -20,6 +20,7 @@ import com.intellij.lang.ASTNode;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
import org.jetbrains.jet.JetNodeTypes;
|
||||
import org.jetbrains.jet.lexer.JetTokens;
|
||||
|
||||
public class JetForExpression extends JetLoopExpression {
|
||||
public JetForExpression(@NotNull ASTNode node) {
|
||||
@@ -50,4 +51,9 @@ public class JetForExpression extends JetLoopExpression {
|
||||
public JetExpression getLoopRange() {
|
||||
return findExpressionUnder(JetNodeTypes.LOOP_RANGE);
|
||||
}
|
||||
|
||||
@Nullable @IfNotParsed
|
||||
public ASTNode getInKeywordNode() {
|
||||
return getNode().findChildByType(JetTokens.IN_KEYWORD);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user