summaryrefslogtreecommitdiffstats
path: root/sd-plugin/src/main/java/org/intellij/sdk/language/psi/impl/SdIdentifierMixinImpl.java
blob: 69ccf9eda2a440d2ef0c76e781b67928354e797a (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
package org.intellij.sdk.language.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 org.intellij.sdk.language.SdReference;
import org.intellij.sdk.language.psi.SdIdentifier;
import org.jetbrains.annotations.NotNull;

/**
 * This class is used for methods' implementations for SdIdentifier. The abstract class SdIdentifierMixin extents it.
 * @author shahariel
 */
public class SdIdentifierMixinImpl extends ASTWrapperPsiElement implements SdIdentifier {
    
    public SdIdentifierMixinImpl(@NotNull ASTNode node) {
        super(node);
    }
    
    @NotNull
    public PsiReference getReference() {
        return new SdReference(this, new TextRange(0, getNode().getText().length()));
    }
}