Search in sources :

Example 1 with PsiRequiresStatementStubImpl

use of com.intellij.psi.impl.java.stubs.impl.PsiRequiresStatementStubImpl in project intellij-community by JetBrains.

the class JavaRequiresStatementElementType method createStub.

@Override
public PsiRequiresStatementStub createStub(LighterAST tree, LighterASTNode node, StubElement parentStub) {
    LighterASTNode ref = LightTreeUtil.firstChildOfType(tree, node, JavaElementType.MODULE_REFERENCE);
    String refText = ref != null ? JavaSourceUtil.getReferenceText(tree, ref) : null;
    return new PsiRequiresStatementStubImpl(parentStub, refText);
}
Also used : PsiRequiresStatementStubImpl(com.intellij.psi.impl.java.stubs.impl.PsiRequiresStatementStubImpl) LighterASTNode(com.intellij.lang.LighterASTNode)

Aggregations

LighterASTNode (com.intellij.lang.LighterASTNode)1 PsiRequiresStatementStubImpl (com.intellij.psi.impl.java.stubs.impl.PsiRequiresStatementStubImpl)1