Navigation to invoke() from {}
Example:
foo <caret>{}
This commit is contained in:
@@ -20,7 +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.JetToken;
|
||||
import org.jetbrains.jet.lexer.JetTokens;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@@ -65,4 +65,14 @@ public class JetFunctionLiteralExpression extends JetExpressionImpl {
|
||||
public JetElement asElement() {
|
||||
return this;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public ASTNode getLeftCurlyBrace() {
|
||||
return getFunctionLiteral().getNode().findChildByType(JetTokens.LBRACE);
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public ASTNode getRightCurlyBrace() {
|
||||
return getFunctionLiteral().getNode().findChildByType(JetTokens.RBRACE);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user