mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-08 18:15:14 +08:00
Big refactoring: BaseDefinition._definnition changes to BaseDefinition._name, because it's a NamePart now.
This also includes changes to tests and some simplifications like deleting the old name logic of Definition.
This commit is contained in:
1 parent
58526e2302
commit
9f16555f47
4 files changed
+50
-96
No files matched your search
@@ -26,4 +26,4 @@ asdfasdf""" + "h"
|
||||
def test_tokenizer_with_string_literal_backslash():
|
||||
import jedi
|
||||
c = jedi.Script("statement = u'foo\\\n'; statement").goto_definitions()
|
||||
assert c[0]._definition.parent.parent.obj == 'foo'
|
||||
assert c[0]._name.parent.parent.obj == 'foo'
|
||||
Reference in new issue
Block a user