simontran7
64ce58dd64
fix malformed parse tree for invalid let struct pattern ( #7782 )
...
Fixes the malformed parse tree produced for an invalid let struct
pattern containing a single identifier (e.g., `let {s};`).
As pointed out by @DavidLoftus, the parser should produce a parse tree
similar to that of `let {ref s};`, since both are missing a binding
power operator `:`, and both do not have a `.` preceding the identifier
(i.e., `state.in_field_shorthand_pattern == true`).
This means that the parser can produce an the `InvalidParse` node just
as it does for `let {ref s};`.
Closes #7674
2026-09-15 23:10:17 +00:00
..
2023-09-01 01:35:45 +00:00
2026-09-15 23:10:17 +00:00
2026-08-17 17:39:42 +00:00
2026-07-11 00:03:31 +00:00
2026-09-01 01:19:13 +00:00
2026-07-31 16:44:18 +00:00
2026-08-17 17:39:42 +00:00
2026-08-17 17:39:42 +00:00
2026-08-17 17:39:42 +00:00
2026-08-17 17:39:42 +00:00
2026-08-17 17:39:42 +00:00
2026-08-17 17:39:42 +00:00
2026-08-17 17:39:42 +00:00
2026-09-11 17:04:40 +00:00
2025-04-05 04:25:00 +00:00
2026-07-11 01:22:44 +00:00
2026-02-12 01:56:15 +00:00
2026-06-11 22:33:29 +00:00
2026-07-30 16:37:46 +00:00
2025-12-30 19:18:34 +00:00
2026-07-11 01:22:44 +00:00
2025-04-05 04:25:00 +00:00
2025-09-02 23:15:26 +00:00
2026-07-11 01:22:44 +00:00
2026-07-11 01:22:44 +00:00
2026-09-03 19:06:20 +00:00
2026-02-12 01:56:15 +00:00
2026-02-07 02:41:22 +00:00
2025-04-05 04:25:00 +00:00
2026-07-11 01:22:44 +00:00
2026-07-11 01:22:44 +00:00
2026-02-12 01:56:15 +00:00
2026-03-31 22:27:43 +00:00
2026-06-29 21:12:58 +00:00
2026-07-30 16:37:46 +00:00
2026-07-20 19:09:16 +00:00
2026-07-30 16:37:46 +00:00
2026-07-11 01:22:44 +00:00
2026-02-26 19:21:19 +00:00
2026-02-12 01:56:15 +00:00
2025-12-30 19:18:34 +00:00
2026-09-04 01:22:16 +00:00
2026-09-15 23:10:17 +00:00
2026-05-22 23:53:19 +00:00
2025-10-23 18:34:52 +00:00
2026-02-23 22:46:03 +00:00
2026-07-30 16:37:46 +00:00
2026-07-11 01:22:44 +00:00
2026-07-30 16:37:46 +00:00
2026-07-30 16:37:46 +00:00
2025-07-18 18:29:12 +00:00
2025-09-12 22:59:37 +00:00
2026-03-09 22:30:16 +00:00
2026-03-28 00:06:06 +00:00
2025-09-12 22:59:37 +00:00
2026-09-04 01:22:16 +00:00
2026-08-17 17:39:42 +00:00
2025-06-27 22:08:47 +00:00
2026-07-31 16:44:18 +00:00
2026-07-31 16:44:18 +00:00
2024-08-22 22:32:19 +00:00
2026-02-07 02:41:22 +00:00
2026-03-28 00:06:06 +00:00
2025-09-12 22:59:37 +00:00
2026-09-01 01:19:13 +00:00
2025-04-05 04:25:00 +00:00
2026-07-31 16:44:18 +00:00
2026-09-11 00:22:27 +00:00
2026-07-31 16:44:18 +00:00
2026-07-31 16:44:18 +00:00
2026-09-11 00:22:27 +00:00
2026-07-22 20:25:41 +00:00
2026-09-04 01:22:16 +00:00