Search in sources :

Example 1 with PsiTypeParameterStubImpl

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

the class JavaTypeParameterElementType method createStub.

@Override
public PsiTypeParameterStub createStub(final LighterAST tree, final LighterASTNode node, final StubElement parentStub) {
    final LighterASTNode id = LightTreeUtil.requiredChildOfType(tree, node, JavaTokenType.IDENTIFIER);
    final String name = RecordUtil.intern(tree.getCharTable(), id);
    return new PsiTypeParameterStubImpl(parentStub, StringRef.fromString(name));
}
Also used : LighterASTNode(com.intellij.lang.LighterASTNode) PsiTypeParameterStubImpl(com.intellij.psi.impl.java.stubs.impl.PsiTypeParameterStubImpl)

Aggregations

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