mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PY-741
RegExp - no regexp support after extract method refactoring
This commit is contained in:
@@ -81,11 +81,6 @@ public class PyCodeFragmentBuilder extends PyRecursiveElementVisitor {
|
||||
CodeFragmentUtil.getPosition(declaration, startOffset, endOffset) != Position.INSIDE)){
|
||||
continue;
|
||||
}
|
||||
// Handle resolve via import statement
|
||||
if (declaration instanceof PyFile){
|
||||
inElements.add(name);
|
||||
break;
|
||||
}
|
||||
// Ignore outer elements or import statements
|
||||
if (declaration == null || !PsiTreeUtil.isAncestor(myOwner, declaration, false) ||
|
||||
declaration instanceof PyImportElement){
|
||||
|
||||
@@ -6,5 +6,4 @@ print(foo)
|
||||
foo.bar
|
||||
<result>
|
||||
In:
|
||||
foo
|
||||
Out:
|
||||
Reference in New Issue
Block a user