Added PyStringLiteralExpression.getDecodedFragments()

This commit is contained in:
Andrey Vlasovskikh
2013-12-04 15:31:14 +04:00
parent 1fe89e9896
commit 7e72dbfc8b
3 changed files with 211 additions and 186 deletions
@@ -18,6 +18,7 @@ package com.jetbrains.python.psi;
import com.intellij.lang.ASTNode;
import com.intellij.openapi.util.TextRange;
import com.intellij.psi.PsiLanguageInjectionHost;
import org.jetbrains.annotations.NotNull;
import java.util.List;
@@ -28,6 +29,17 @@ public interface PyStringLiteralExpression extends PyLiteralExpression, StringLi
int valueOffsetToTextOffset(int valueOffset);
interface DecodedFragment {
@NotNull
TextRange getEncodedTextRange();
@NotNull
String getValue();
}
@NotNull
List<DecodedFragment> getDecodedFragments();
void iterateCharacterRanges(TextRangeConsumer consumer);
/**