mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user