mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 15:19:59 +07:00
cleanup
This commit is contained in:
@@ -13,6 +13,7 @@ public abstract class JSStringLiteralEscaper<T extends PsiLanguageInjectionHost>
|
||||
super(host);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean decode(@NotNull final TextRange rangeInsideHost, @NotNull StringBuilder outChars) {
|
||||
String subText = rangeInsideHost.substring(myHost.getText());
|
||||
|
||||
@@ -24,12 +25,14 @@ public abstract class JSStringLiteralEscaper<T extends PsiLanguageInjectionHost>
|
||||
|
||||
protected abstract boolean isRegExpLiteral();
|
||||
|
||||
@Override
|
||||
public int getOffsetInHost(int offsetInDecoded, @NotNull final TextRange rangeInsideHost) {
|
||||
int result = offsetInDecoded < outSourceOffsets.length ? outSourceOffsets[offsetInDecoded] : -1;
|
||||
if (result == -1) return -1;
|
||||
return (result <= rangeInsideHost.getLength() ? result : rangeInsideHost.getLength()) + rangeInsideHost.getStartOffset();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isOneLine() {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user