Search in sources :

Example 1 with PsiUsesStatementStubImpl

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

the class JavaUsesStatementElementType method createStub.

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

Aggregations

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