mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-08 06:44:46 +08:00
start using precedences, working good with only a few test fails
This commit is contained in:
@@ -8,7 +8,7 @@ def parse_tree(statement_string, is_slice=False):
|
||||
if is_slice:
|
||||
# get the part of the execution that is the slice
|
||||
stmt = stmt.expression_list()[0].execution[0]
|
||||
iterable = iter(stmt.expression_list())
|
||||
iterable = stmt.expression_list()
|
||||
pr = precedence.create_precedence(iterable)
|
||||
if isinstance(pr, precedence.Precedence):
|
||||
return pr.parse_tree(strip_literals=True)
|
||||
|
||||
Reference in New Issue
Block a user