Rename jet -> kotlin in stub index external ids
This commit is contained in:
@@ -27,7 +27,7 @@ import org.jetbrains.kotlin.parsing.JetParser;
|
|||||||
import org.jetbrains.kotlin.psi.stubs.elements.JetFileElementType;
|
import org.jetbrains.kotlin.psi.stubs.elements.JetFileElementType;
|
||||||
|
|
||||||
public class JetBlockCodeFragmentType extends JetFileElementType {
|
public class JetBlockCodeFragmentType extends JetFileElementType {
|
||||||
private static final String NAME = "jet.BLOCK_CODE_FRAGMENT";
|
private static final String NAME = "kotlin.BLOCK_CODE_FRAGMENT";
|
||||||
|
|
||||||
public JetBlockCodeFragmentType() {
|
public JetBlockCodeFragmentType() {
|
||||||
super(NAME);
|
super(NAME);
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ import org.jetbrains.kotlin.parsing.JetParser;
|
|||||||
import org.jetbrains.kotlin.psi.stubs.elements.JetFileElementType;
|
import org.jetbrains.kotlin.psi.stubs.elements.JetFileElementType;
|
||||||
|
|
||||||
public class JetExpressionCodeFragmentType extends JetFileElementType {
|
public class JetExpressionCodeFragmentType extends JetFileElementType {
|
||||||
private static final String NAME = "jet.EXPRESSION_CODE_FRAGMENT";
|
private static final String NAME = "kotlin.EXPRESSION_CODE_FRAGMENT";
|
||||||
|
|
||||||
public JetExpressionCodeFragmentType() {
|
public JetExpressionCodeFragmentType() {
|
||||||
super(NAME);
|
super(NAME);
|
||||||
@@ -47,4 +47,3 @@ public class JetExpressionCodeFragmentType extends JetFileElementType {
|
|||||||
return JetParser.parseExpressionCodeFragment(builder).getFirstChildNode();
|
return JetParser.parseExpressionCodeFragment(builder).getFirstChildNode();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ import org.jetbrains.kotlin.parsing.JetParser;
|
|||||||
import org.jetbrains.kotlin.psi.stubs.elements.JetFileElementType;
|
import org.jetbrains.kotlin.psi.stubs.elements.JetFileElementType;
|
||||||
|
|
||||||
public class JetTypeCodeFragmentType extends JetFileElementType {
|
public class JetTypeCodeFragmentType extends JetFileElementType {
|
||||||
private static final String NAME = "jet.TYPE_CODE_FRAGMENT";
|
private static final String NAME = "kotlin.TYPE_CODE_FRAGMENT";
|
||||||
|
|
||||||
public JetTypeCodeFragmentType() {
|
public JetTypeCodeFragmentType() {
|
||||||
super(NAME);
|
super(NAME);
|
||||||
|
|||||||
+5
-3
@@ -36,10 +36,12 @@ import org.jetbrains.kotlin.psi.stubs.impl.KotlinFileStubImpl;
|
|||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
|
||||||
public class JetFileElementType extends IStubFileElementType<KotlinFileStub> {
|
public class JetFileElementType extends IStubFileElementType<KotlinFileStub> {
|
||||||
public static final int STUB_VERSION = 34;
|
public static final int STUB_VERSION = 35;
|
||||||
|
|
||||||
|
private static final String NAME = "kotlin.FILE";
|
||||||
|
|
||||||
public JetFileElementType() {
|
public JetFileElementType() {
|
||||||
super("jet.FILE", JetLanguage.INSTANCE);
|
super(NAME, JetLanguage.INSTANCE);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected JetFileElementType(@NonNls String debugName) {
|
protected JetFileElementType(@NonNls String debugName) {
|
||||||
@@ -59,7 +61,7 @@ public class JetFileElementType extends IStubFileElementType<KotlinFileStub> {
|
|||||||
@NotNull
|
@NotNull
|
||||||
@Override
|
@Override
|
||||||
public String getExternalId() {
|
public String getExternalId() {
|
||||||
return "jet.FILE";
|
return NAME;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
+1
-1
@@ -85,7 +85,7 @@ public abstract class JetStubElementType<StubT extends StubElement, PsiT extends
|
|||||||
@NotNull
|
@NotNull
|
||||||
@Override
|
@Override
|
||||||
public String getExternalId() {
|
public String getExternalId() {
|
||||||
return "jet." + toString();
|
return "kotlin." + toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user