Rintaro Ishizaki
b119407966
[Parse] Change whitespace rule between attribute name and '(' in Swift 6
...
In Swift 6 and later, whitespace is no longer permitted between an
attribute name and the opening parenthesis. Update the parser so that
in Swift 6+, a `(` without preceding whitespace is always treated as
the start of the argument list, while a '(' with preceding whitespace is
considered the start of the argument list _only when_ it is unambiguous.
This change makes the following closure be parsed correctly:
{ @MainActor (arg: Int) in ... }
rdar://147785544
2025-09-09 16:44:29 -07:00
..
2024-12-05 06:57:17 -08:00
2025-07-03 23:52:16 -07:00
2025-07-22 13:07:03 -07:00
2024-12-05 16:09:02 -08:00
2024-10-31 17:28:25 -04:00
2025-06-22 23:23:49 -04:00
2025-07-09 10:44:39 -07:00
2024-10-24 17:19:50 -04:00
2025-09-05 22:34:12 -07:00
2025-09-05 22:34:12 -07:00
2024-11-06 10:15:26 -08:00
2025-04-22 18:23:40 +01:00
2025-01-10 15:05:01 -08:00
2024-06-13 17:45:30 -04:00
2025-09-05 22:34:12 -07:00
2025-04-16 19:22:52 +01:00
2024-10-15 23:11:15 -04:00
2025-04-05 12:31:20 +01:00
2025-04-22 18:23:36 +01:00
2025-04-22 18:23:36 +01:00
2024-10-08 11:53:45 -04:00
2024-11-02 11:46:46 -07:00
2024-06-13 17:45:30 -04:00
2024-11-02 11:46:46 -07:00
2025-02-06 11:07:20 -08:00
2025-07-15 11:16:13 +09:00
2024-11-06 15:55:38 -08:00
2025-05-05 13:50:51 -07:00
2024-12-13 08:39:44 -08:00
2025-05-05 13:50:51 -07:00
2025-06-18 12:19:12 +01:00
2025-05-07 02:30:30 +01:00
2024-10-25 10:39:06 -04:00
2024-10-25 10:39:06 -04:00
2025-01-10 14:36:29 +00:00
2025-01-10 14:36:29 +00:00
2025-04-16 19:22:52 +01:00
2024-06-17 11:36:52 -07:00
2024-11-02 11:46:46 -07:00
2024-11-02 11:46:46 -07:00
2024-06-24 12:59:08 -07:00
2025-05-29 15:09:36 +01:00
2025-09-09 16:44:29 -07:00
2025-03-11 13:25:30 -07:00
2024-11-02 11:46:46 -07:00
2025-05-06 16:55:42 -07:00
2025-04-22 18:23:40 +01:00
2025-09-05 22:34:12 -07:00
2025-09-05 22:34:12 -07:00
2025-07-02 17:46:10 +01:00
2024-11-02 11:46:46 -07:00
2024-06-13 17:45:30 -04:00
2025-07-03 23:52:16 -07:00