fix(parser): fix call expr location span

This commit is contained in:
2026-06-19 13:57:49 +02:00
parent 92ca6b6732
commit 2974386110

View File

@@ -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,