Minor: Override getTextOffset() in JetObjectDeclaration
Availability of some intentions depends on this
This commit is contained in:
@@ -141,6 +141,17 @@ public class JetObjectDeclaration extends JetNamedDeclarationStub<KotlinObjectSt
|
|||||||
return JetPsiUtil.isLocal(this);
|
return JetPsiUtil.isLocal(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int getTextOffset() {
|
||||||
|
PsiElement nameIdentifier = getNameIdentifier();
|
||||||
|
if (nameIdentifier != null) {
|
||||||
|
return nameIdentifier.getTextRange().getStartOffset();
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
return getObjectKeyword().getTextRange().getStartOffset();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@NotNull
|
@NotNull
|
||||||
public List<JetDeclaration> getDeclarations() {
|
public List<JetDeclaration> getDeclarations() {
|
||||||
|
|||||||
Reference in New Issue
Block a user