fix(parser): fix call expr location span

This commit is contained in:
2026-06-19 13:57:49 +02:00
parent 96e76065cf
commit 32330243c6

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,