fix(parser): fix call expr location span
This commit is contained in:
@@ -380,7 +380,7 @@ class MidasParser(Parser):
|
|||||||
TokenType.RIGHT_PAREN, "Expected ')' after arguments."
|
TokenType.RIGHT_PAREN, "Expected ')' after arguments."
|
||||||
)
|
)
|
||||||
return CallExpr(
|
return CallExpr(
|
||||||
location=l_paren.location_to(r_paren),
|
location=Location.span(callee.location, r_paren.get_location()),
|
||||||
callee=callee,
|
callee=callee,
|
||||||
arguments=pos_args,
|
arguments=pos_args,
|
||||||
keywords=kw_args,
|
keywords=kw_args,
|
||||||
|
|||||||
Reference in New Issue
Block a user