mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PyImportElement.toString()
This commit is contained in:
@@ -234,4 +234,10 @@ public class PyImportElementImpl extends PyBaseElementImpl<PyImportElementStub>
|
||||
protected void acceptPyVisitor(PyElementVisitor pyVisitor) {
|
||||
pyVisitor.visitPyImportElement(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
final PyQualifiedName qName = getImportedQName();
|
||||
return "PyImportElement:" + (qName != null ? qName : "null");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@ PyFile:ImportStmt.py
|
||||
PyImportStatement
|
||||
PsiElement(Py:IMPORT_KEYWORD)('import')
|
||||
PsiWhiteSpace(' ')
|
||||
PyImportElement
|
||||
PyImportElement:A
|
||||
PyReferenceExpression: A
|
||||
PsiElement(Py:IDENTIFIER)('A')
|
||||
PsiWhiteSpace(' ')
|
||||
@@ -18,7 +18,7 @@ PyFile:ImportStmt.py
|
||||
PyImportStatement
|
||||
PsiElement(Py:IMPORT_KEYWORD)('import')
|
||||
PsiWhiteSpace(' ')
|
||||
PyImportElement
|
||||
PyImportElement:A
|
||||
PyReferenceExpression: A
|
||||
PsiElement(Py:IDENTIFIER)('A')
|
||||
PsiWhiteSpace(' ')
|
||||
@@ -28,7 +28,7 @@ PyFile:ImportStmt.py
|
||||
PsiElement(Py:IDENTIFIER)('D')
|
||||
PsiElement(Py:COMMA)(',')
|
||||
PsiWhiteSpace(' ')
|
||||
PyImportElement
|
||||
PyImportElement:A
|
||||
PyReferenceExpression: A
|
||||
PsiElement(Py:IDENTIFIER)('A')
|
||||
PsiWhiteSpace(' ')
|
||||
@@ -42,7 +42,7 @@ PyFile:ImportStmt.py
|
||||
PyImportStatement
|
||||
PsiElement(Py:IMPORT_KEYWORD)('import')
|
||||
PsiWhiteSpace(' ')
|
||||
PyImportElement
|
||||
PyImportElement:A.B.C
|
||||
PyReferenceExpression: C
|
||||
PyReferenceExpression: B
|
||||
PyReferenceExpression: A
|
||||
@@ -58,7 +58,7 @@ PyFile:ImportStmt.py
|
||||
PsiElement(Py:IDENTIFIER)('D')
|
||||
PsiElement(Py:COMMA)(',')
|
||||
PsiWhiteSpace(' ')
|
||||
PyImportElement
|
||||
PyImportElement:A
|
||||
PyReferenceExpression: A
|
||||
PsiElement(Py:IDENTIFIER)('A')
|
||||
PsiWhiteSpace(' ')
|
||||
@@ -72,7 +72,7 @@ PyFile:ImportStmt.py
|
||||
PyImportStatement
|
||||
PsiElement(Py:IMPORT_KEYWORD)('import')
|
||||
PsiWhiteSpace(' ')
|
||||
PyImportElement
|
||||
PyImportElement:as
|
||||
PyReferenceExpression: as
|
||||
PsiElement(Py:IDENTIFIER)('as')
|
||||
PsiWhiteSpace(' ')
|
||||
@@ -86,7 +86,7 @@ PyFile:ImportStmt.py
|
||||
PyImportStatement
|
||||
PsiElement(Py:IMPORT_KEYWORD)('import')
|
||||
PsiWhiteSpace(' ')
|
||||
PyImportElement
|
||||
PyImportElement:A
|
||||
PyReferenceExpression: A
|
||||
PsiElement(Py:IDENTIFIER)('A')
|
||||
PsiWhiteSpace('\n')
|
||||
@@ -95,17 +95,17 @@ PyFile:ImportStmt.py
|
||||
PyImportStatement
|
||||
PsiElement(Py:IMPORT_KEYWORD)('import')
|
||||
PsiWhiteSpace(' ')
|
||||
PyImportElement
|
||||
PyImportElement:A
|
||||
PyReferenceExpression: A
|
||||
PsiElement(Py:IDENTIFIER)('A')
|
||||
PsiElement(Py:COMMA)(',')
|
||||
PsiWhiteSpace(' ')
|
||||
PyImportElement
|
||||
PyImportElement:B
|
||||
PyReferenceExpression: B
|
||||
PsiElement(Py:IDENTIFIER)('B')
|
||||
PsiElement(Py:COMMA)(',')
|
||||
PsiWhiteSpace(' ')
|
||||
PyImportElement
|
||||
PyImportElement:C
|
||||
PyReferenceExpression: C
|
||||
PsiElement(Py:IDENTIFIER)('C')
|
||||
PsiWhiteSpace('\n')
|
||||
@@ -114,7 +114,7 @@ PyFile:ImportStmt.py
|
||||
PyImportStatement
|
||||
PsiElement(Py:IMPORT_KEYWORD)('import')
|
||||
PsiWhiteSpace(' ')
|
||||
PyImportElement
|
||||
PyImportElement:A.B.C
|
||||
PyReferenceExpression: C
|
||||
PyReferenceExpression: B
|
||||
PyReferenceExpression: A
|
||||
@@ -134,12 +134,12 @@ PyFile:ImportStmt.py
|
||||
PsiWhiteSpace(' ')
|
||||
PsiElement(Py:IMPORT_KEYWORD)('import')
|
||||
PsiWhiteSpace(' ')
|
||||
PyImportElement
|
||||
PyImportElement:B
|
||||
PyReferenceExpression: B
|
||||
PsiElement(Py:IDENTIFIER)('B')
|
||||
PsiElement(Py:COMMA)(',')
|
||||
PsiWhiteSpace(' ')
|
||||
PyImportElement
|
||||
PyImportElement:C
|
||||
PyReferenceExpression: C
|
||||
PsiElement(Py:IDENTIFIER)('C')
|
||||
PsiWhiteSpace('\n')
|
||||
@@ -153,7 +153,7 @@ PyFile:ImportStmt.py
|
||||
PsiWhiteSpace(' ')
|
||||
PsiElement(Py:IMPORT_KEYWORD)('import')
|
||||
PsiWhiteSpace(' ')
|
||||
PyImportElement
|
||||
PyImportElement:B
|
||||
PyReferenceExpression: B
|
||||
PsiElement(Py:IDENTIFIER)('B')
|
||||
PsiWhiteSpace(' ')
|
||||
@@ -172,7 +172,7 @@ PyFile:ImportStmt.py
|
||||
PsiWhiteSpace(' ')
|
||||
PsiElement(Py:IMPORT_KEYWORD)('import')
|
||||
PsiWhiteSpace(' ')
|
||||
PyImportElement
|
||||
PyImportElement:B
|
||||
PyReferenceExpression: B
|
||||
PsiElement(Py:IDENTIFIER)('B')
|
||||
PsiWhiteSpace(' ')
|
||||
@@ -182,7 +182,7 @@ PyFile:ImportStmt.py
|
||||
PsiElement(Py:IDENTIFIER)('C')
|
||||
PsiElement(Py:COMMA)(',')
|
||||
PsiWhiteSpace(' ')
|
||||
PyImportElement
|
||||
PyImportElement:X
|
||||
PyReferenceExpression: X
|
||||
PsiElement(Py:IDENTIFIER)('X')
|
||||
PsiWhiteSpace(' ')
|
||||
@@ -201,7 +201,7 @@ PyFile:ImportStmt.py
|
||||
PsiWhiteSpace(' ')
|
||||
PsiElement(Py:IMPORT_KEYWORD)('import')
|
||||
PsiWhiteSpace(' ')
|
||||
PyImportElement
|
||||
PyImportElement:as
|
||||
PyReferenceExpression: as
|
||||
PsiElement(Py:IDENTIFIER)('as')
|
||||
PsiWhiteSpace(' ')
|
||||
|
||||
@@ -7,7 +7,7 @@ PyFile:PrintAsFunction26.py
|
||||
PsiWhiteSpace(' ')
|
||||
PsiElement(Py:IMPORT_KEYWORD)('import')
|
||||
PsiWhiteSpace(' ')
|
||||
PyImportElement
|
||||
PyImportElement:print_function
|
||||
PyReferenceExpression: print_function
|
||||
PsiElement(Py:IDENTIFIER)('print_function')
|
||||
PsiWhiteSpace('\n')
|
||||
|
||||
@@ -7,7 +7,7 @@ PyFile:WithStatement.py
|
||||
PsiWhiteSpace(' ')
|
||||
PsiElement(Py:IMPORT_KEYWORD)('import')
|
||||
PsiWhiteSpace(' ')
|
||||
PyImportElement
|
||||
PyImportElement:with_statement
|
||||
PyReferenceExpression: with_statement
|
||||
PsiElement(Py:IDENTIFIER)('with_statement')
|
||||
PsiWhiteSpace('\n')
|
||||
|
||||
@@ -22,12 +22,12 @@ PyFile:WithStatement2.py
|
||||
PsiWhiteSpace(' ')
|
||||
PsiElement(Py:IMPORT_KEYWORD)('import')
|
||||
PsiWhiteSpace(' ')
|
||||
PyImportElement
|
||||
PyImportElement:nested_scopes
|
||||
PyReferenceExpression: nested_scopes
|
||||
PsiElement(Py:IDENTIFIER)('nested_scopes')
|
||||
PsiElement(Py:COMMA)(',')
|
||||
PsiWhiteSpace(' ')
|
||||
PyImportElement
|
||||
PyImportElement:with_statement
|
||||
PyReferenceExpression: with_statement
|
||||
PsiElement(Py:IDENTIFIER)('with_statement')
|
||||
PsiWhiteSpace('\n')
|
||||
|
||||
Reference in New Issue
Block a user