From 2d2eb7860fc47850910bdfc80732d92098ddff16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20De=20Canni=C3=A8re?= Date: Sat, 26 Sep 2026 12:01:04 +0200 Subject: qmldom: Visit call optional token instead of its lparen twice Amends ae6dfc63668556e89057edb1b83de28d7554c5ef Task-number: QTBUG-151040 Pick-to: 6.12 Co-Authored-By: Claude Opus 5 Change-Id: I438ca1b8e2de4fc05769f2d627c3d7edaefe94a0 Reviewed-by: Sami Shalayel --- src/qmldom/qqmldomcomments.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qmldom/qqmldomcomments.cpp b/src/qmldom/qqmldomcomments.cpp index eeef08153c..1e73f12eaf 100644 --- a/src/qmldom/qqmldomcomments.cpp +++ b/src/qmldom/qqmldomcomments.cpp @@ -535,7 +535,7 @@ public: bool visit(CallExpression *call) override { - addSourceLocations(call, call->lparenToken); + addSourceLocations(call, call->optionalToken); addSourceLocations(call, call->lparenToken); addSourceLocations(call, call->rparenToken); return true; -- cgit v1.2.3