Search in sources :

Example 1 with PropertyStubImpl

use of com.intellij.lang.properties.psi.impl.PropertyStubImpl in project intellij-community by JetBrains.

the class PropertyStubElementType method createStub.

@Override
public PropertyStub createStub(LighterAST tree, LighterASTNode node, StubElement parentStub) {
    LighterASTNode keyNode = LightTreeUtil.firstChildOfType(tree, node, PropertiesTokenTypes.KEY_CHARACTERS);
    String key = intern(tree.getCharTable(), keyNode);
    return new PropertyStubImpl(parentStub, key);
}
Also used : LighterASTNode(com.intellij.lang.LighterASTNode) PropertyStubImpl(com.intellij.lang.properties.psi.impl.PropertyStubImpl)

Aggregations

LighterASTNode (com.intellij.lang.LighterASTNode)1 PropertyStubImpl (com.intellij.lang.properties.psi.impl.PropertyStubImpl)1