mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-17 06:49:59 +07:00
IDEA-67494 Freemarker/Velocity: make StringLiterals injectable
This commit is contained in:
+3
-2
@@ -15,6 +15,7 @@
|
||||
*/
|
||||
package com.intellij.psi.impl.source.tree.injected;
|
||||
|
||||
import com.intellij.psi.PsiLanguageInjectionHost;
|
||||
import com.intellij.psi.impl.source.tree.java.PsiLiteralExpressionImpl;
|
||||
import com.intellij.psi.LiteralTextEscaper;
|
||||
import com.intellij.openapi.util.TextRange;
|
||||
@@ -24,10 +25,10 @@ import org.jetbrains.annotations.NotNull;
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public class StringLiteralEscaper extends LiteralTextEscaper<PsiLiteralExpressionImpl> {
|
||||
public class StringLiteralEscaper<T extends PsiLanguageInjectionHost> extends LiteralTextEscaper<T> {
|
||||
private int[] outSourceOffsets;
|
||||
|
||||
public StringLiteralEscaper(PsiLiteralExpressionImpl host) {
|
||||
public StringLiteralEscaper(T host) {
|
||||
super(host);
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -547,7 +547,7 @@ public class PsiLiteralExpressionImpl
|
||||
|
||||
@NotNull
|
||||
public LiteralTextEscaper<PsiLiteralExpressionImpl> createLiteralTextEscaper() {
|
||||
return new StringLiteralEscaper(this);
|
||||
return new StringLiteralEscaper<PsiLiteralExpressionImpl>(this);
|
||||
}
|
||||
|
||||
public void processInjectedPsi(@NotNull InjectedPsiVisitor visitor) {
|
||||
|
||||
Reference in New Issue
Block a user