Put arguments name to stubs in annotations (KT-23738)
This commit is contained in:
@@ -65,7 +65,7 @@ public interface KtNodeTypes {
|
||||
IElementType VALUE_ARGUMENT_LIST = KtStubElementTypes.VALUE_ARGUMENT_LIST;
|
||||
IElementType VALUE_ARGUMENT = KtStubElementTypes.VALUE_ARGUMENT;
|
||||
IElementType LAMBDA_ARGUMENT = KtStubElementTypes.LAMBDA_ARGUMENT;
|
||||
KtNodeType VALUE_ARGUMENT_NAME = new KtNodeType("VALUE_ARGUMENT_NAME", KtValueArgumentName.class);
|
||||
IElementType VALUE_ARGUMENT_NAME = KtStubElementTypes.VALUE_ARGUMENT_NAME;
|
||||
IElementType TYPE_REFERENCE = KtStubElementTypes.TYPE_REFERENCE;
|
||||
|
||||
IElementType USER_TYPE = KtStubElementTypes.USER_TYPE;
|
||||
|
||||
@@ -20,12 +20,18 @@ import com.intellij.lang.ASTNode;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.kotlin.KtNodeTypes;
|
||||
import org.jetbrains.kotlin.name.Name;
|
||||
import org.jetbrains.kotlin.psi.stubs.KotlinPlaceHolderStub;
|
||||
import org.jetbrains.kotlin.psi.stubs.elements.KtStubElementTypes;
|
||||
|
||||
public class KtValueArgumentName extends KtElementImpl implements ValueArgumentName {
|
||||
public class KtValueArgumentName extends KtElementImplStub<KotlinPlaceHolderStub<KtValueArgumentName>> implements ValueArgumentName {
|
||||
public KtValueArgumentName(@NotNull ASTNode node) {
|
||||
super(node);
|
||||
}
|
||||
|
||||
public KtValueArgumentName(@NotNull KotlinPlaceHolderStub<KtValueArgumentName> stub) {
|
||||
super(stub, KtStubElementTypes.VALUE_ARGUMENT_NAME);
|
||||
}
|
||||
|
||||
@Override
|
||||
@NotNull
|
||||
public KtSimpleNameExpression getReferenceExpression() {
|
||||
|
||||
@@ -23,7 +23,7 @@ object KotlinStubVersions {
|
||||
// Though only kotlin declarations (no code in the bodies) are stubbed, please do increase this version
|
||||
// if you are not 100% sure it can be avoided.
|
||||
// Increasing this version will lead to reindexing of all kotlin source files on the first IDE startup with the new version.
|
||||
const val SOURCE_STUB_VERSION = 129
|
||||
const val SOURCE_STUB_VERSION = 130
|
||||
|
||||
// Binary stub version should be increased if stub format (org.jetbrains.kotlin.psi.stubs.impl) is changed
|
||||
// or changes are made to the core stub building code (org.jetbrains.kotlin.idea.decompiler.stubBuilder).
|
||||
|
||||
@@ -110,6 +110,9 @@ public interface KtStubElementTypes {
|
||||
KtPlaceHolderStubElementType<KtLambdaArgument> LAMBDA_ARGUMENT =
|
||||
new KtPlaceHolderStubElementType<>("LAMBDA_ARGUMENT", KtLambdaArgument.class);
|
||||
|
||||
KtPlaceHolderStubElementType<KtValueArgumentName> VALUE_ARGUMENT_NAME =
|
||||
new KtPlaceHolderStubElementType<>("VALUE_ARGUMENT_NAME", KtValueArgumentName.class);
|
||||
|
||||
KtPlaceHolderStubElementType<KtSuperTypeList> SUPER_TYPE_LIST =
|
||||
new KtPlaceHolderStubElementType<>("SUPER_TYPE_LIST", KtSuperTypeList.class);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user