fix(parser): fix call expr location span

This commit is contained in:
HEL
2026-06-19 22:13:05 +02:00
parent 92ca6b6732
commit 2974386110
+1 -1
View File
@@ -380,7 +380,7 @@ class MidasParser(Parser):
TokenType.RIGHT_PAREN, "Expected ')' after arguments."
)
return CallExpr(
location=l_paren.location_to(r_paren),
location=Location.span(callee.location, r_paren.get_location()),
callee=callee,
arguments=pos_args,
keywords=kw_args,