mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
some PSI for template languages in python-psi-api; common superinterface for string literals in Python code and templates
This commit is contained in:
@@ -6,9 +6,7 @@ import com.intellij.psi.PsiLanguageInjectionHost;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface PyStringLiteralExpression extends PyLiteralExpression, PsiLanguageInjectionHost {
|
||||
String getStringValue();
|
||||
|
||||
public interface PyStringLiteralExpression extends PyLiteralExpression, StringLiteralExpression, PsiLanguageInjectionHost {
|
||||
List<TextRange> getStringValueTextRanges();
|
||||
|
||||
List<ASTNode> getStringNodes();
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
package com.jetbrains.python.psi;
|
||||
|
||||
import com.intellij.openapi.util.TextRange;
|
||||
import com.intellij.psi.PsiElement;
|
||||
|
||||
/**
|
||||
* A generic string literal interface (used both in Python code and template files).
|
||||
*
|
||||
* @author yole
|
||||
*/
|
||||
public interface StringLiteralExpression extends PsiElement {
|
||||
String getStringValue();
|
||||
TextRange getStringValueTextRange();
|
||||
}
|
||||
Reference in New Issue
Block a user