Include the call arguments in the location of a call. (#4602)

Underline the entire call in diagnostics, not only the portion up to the
`(`.
This commit is contained in:
Richard Smith
2024-12-02 18:51:44 +00:00
committed by GitHub
parent d0e067ac75
commit 63ff0cca1a
106 changed files with 1575 additions and 1576 deletions
+2 -3
View File
@@ -26,11 +26,10 @@ auto HandleParseNode(Context& context, Parse::CallExprId node_id) -> bool {
// Process the final explicit call argument now, but leave the arguments
// block on the stack until the end of this function.
context.param_and_arg_refs_stack().EndNoPop(Parse::NodeKind::CallExprStart);
auto [call_expr_node_id, callee_id] =
context.node_stack().PopWithNodeId<Parse::NodeKind::CallExprStart>();
auto callee_id = context.node_stack().Pop<Parse::NodeKind::CallExprStart>();
auto call_id = PerformCall(
context, call_expr_node_id, callee_id,
context, node_id, callee_id,
context.param_and_arg_refs_stack().PeekCurrentBlockContents());
context.param_and_arg_refs_stack().PopAndDiscard();