blob: f557ae2618b4a1d3f2fde054af2c3f16bc9f07d3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package ai.vespa.intellij.schema.psi.impl;
import com.intellij.extapi.psi.ASTWrapperPsiElement;
import com.intellij.lang.ASTNode;
import com.intellij.openapi.util.TextRange;
import com.intellij.psi.PsiReference;
import ai.vespa.intellij.schema.SdReference;
import ai.vespa.intellij.schema.psi.SdIdentifier;
/**
* This class is used for methods' implementations for SdIdentifier. The abstract class SdIdentifierMixin extents it.
*
* @author Shahar Ariel
*/
public class SdIdentifierMixinImpl extends ASTWrapperPsiElement implements SdIdentifier {
public SdIdentifierMixinImpl(ASTNode node) {
super(node);
}
public PsiReference getReference() {
return new SdReference(this, new TextRange(0, getNode().getText().length()));
}
}
|