mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Play! more rename and usages searches (IDEA-76155 , IDEA-76814)
This commit is contained in:
+1
@@ -23,4 +23,5 @@ import org.jetbrains.plugins.groovy.lang.psi.api.statements.expressions.GrExpres
|
||||
* @author ilyas
|
||||
*/
|
||||
public interface GrLiteral extends GrExpression, PsiLiteral {
|
||||
void setStringValue(String value);
|
||||
}
|
||||
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
package org.jetbrains.plugins.groovy.lang.psi.impl.statements.expressions.literals;
|
||||
|
||||
import com.intellij.lang.ASTNode;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.plugins.groovy.lang.psi.api.statements.expressions.literals.GrLiteral;
|
||||
import org.jetbrains.plugins.groovy.lang.psi.impl.statements.expressions.GrExpressionImpl;
|
||||
import org.jetbrains.plugins.groovy.lang.resolve.GroovyStringLiteralManipulator;
|
||||
|
||||
|
||||
public abstract class GrAbstractLiteral extends GrExpressionImpl implements GrLiteral {
|
||||
|
||||
public GrAbstractLiteral(@NotNull ASTNode node) {
|
||||
super(node);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setStringValue(String value) {
|
||||
new GroovyStringLiteralManipulator().handleContentChange(this, value);
|
||||
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -43,7 +43,7 @@ import static org.jetbrains.plugins.groovy.lang.lexer.GroovyTokenTypes.*;
|
||||
/**
|
||||
* @author ilyas
|
||||
*/
|
||||
public class GrLiteralImpl extends GrExpressionImpl implements GrLiteral, PsiLanguageInjectionHost {
|
||||
public class GrLiteralImpl extends GrAbstractLiteral implements GrLiteral, PsiLanguageInjectionHost {
|
||||
|
||||
private static final Function<GrLiteralImpl,PsiType> TYPE_CALCULATOR = new NullableFunction<GrLiteralImpl, PsiType>() {
|
||||
@Override
|
||||
|
||||
+1
-1
@@ -35,7 +35,7 @@ import java.util.List;
|
||||
/**
|
||||
* @author ilyas
|
||||
*/
|
||||
public class GrStringImpl extends GrExpressionImpl implements GrString {
|
||||
public class GrStringImpl extends GrAbstractLiteral implements GrString {
|
||||
private static final Function<GrStringImpl,PsiType> TYPE_CALCULATOR = new Function<GrStringImpl, PsiType>() {
|
||||
@Override
|
||||
public PsiType fun(GrStringImpl grString) {
|
||||
|
||||
Reference in New Issue
Block a user