mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Proper inheritance of mixins in JSON PSI
This commit is contained in:
@@ -15,8 +15,6 @@ public interface JsonStringLiteral extends JsonLiteral {
|
||||
@Nullable
|
||||
PsiElement getSingleQuotedString();
|
||||
|
||||
boolean isQuotedString();
|
||||
|
||||
@NotNull
|
||||
List<Pair<TextRange, String>> getTextFragments();
|
||||
|
||||
|
||||
@@ -35,10 +35,6 @@ public class JsonStringLiteralImpl extends JsonStringLiteralMixin implements Jso
|
||||
return findChildByType(SINGLE_QUOTED_STRING);
|
||||
}
|
||||
|
||||
public boolean isQuotedString() {
|
||||
return JsonPsiImplUtils.isQuotedString(this);
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public List<Pair<TextRange, String>> getTextFragments() {
|
||||
return JsonPsiImplUtils.getTextFragments(this);
|
||||
|
||||
@@ -9,7 +9,7 @@ import org.jetbrains.annotations.NotNull;
|
||||
/**
|
||||
* @author Konstantin.Ulitin
|
||||
*/
|
||||
public abstract class JsonStringLiteralMixin extends JsonLiteralMixin implements PsiLanguageInjectionHost {
|
||||
public abstract class JsonStringLiteralMixin extends JsonLiteralImpl implements PsiLanguageInjectionHost {
|
||||
protected JsonStringLiteralMixin(ASTNode node) {
|
||||
super(node);
|
||||
}
|
||||
|
||||
@@ -100,7 +100,6 @@ private array_element ::= value (','|&']') {
|
||||
|
||||
string_literal ::= SINGLE_QUOTED_STRING | DOUBLE_QUOTED_STRING {
|
||||
methods=[
|
||||
isQuotedString
|
||||
getTextFragments
|
||||
]
|
||||
mixin="com.intellij.json.psi.impl.JsonStringLiteralMixin"
|
||||
|
||||
Reference in New Issue
Block a user