Repository navigation
layout: multi-word lambda params in page attributes and repeated call arguments - #3630
Conversation
…s when a component argument is used twice
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
sha=eb6d49d0cd3c3d7929d9e8edbbb25506bbe7023a
🤖 Salam AI reviewVerdict: ✅ Good to merge commit SummaryThis pull request fixes two layout compiler gaps and corrects a Persian UI test. It makes lambda headers in layout attributes accept multi-word parameters, and it clones call-valued component arguments while preserving written-name aliases during layout expansion. The affected test is also updated to use single-word handler names. What changedThe layout lexer now consumes additional identifier words before the colon in an embedded lambda header, so Persian parameters such as Review
TestsThe PR states that RisksThe main residual risk is that other callers of the renamed test handlers, if any outside the shown diff, would need the same rename. The compiler changes are narrowly scoped to lambda header scanning and call cloning, so broader layout behavior should be unaffected.
|
The Persian twins of the tests from #3626 failed on main (ui fa input_push_reset, ui fa input_clear_bound, page fa method_arg_in_each). Two real compiler gaps and one bad test.
(starts a lambda by looking for one identifier then:. A multi-word Persian parameter such as(مقدار تازه: رشته)was not recognised, so the lambda body was lexed as layout attributes and failed with "expected an expression near ...". The header check now accepts several words before the colon.names.بگیر(ی)) straight into every place the parameter is used, so one node was checked twice and its Persian method name was reported as an English identifier. Calls are now cloned per use, and rebuilt member/call nodes keep their written-name aliases.Examples
Tested with a compiler built from this branch: ui fa input_push_reset, input_clear_bound; page fa/en components/method_arg_in_each. ui events_bubble, events_rows, vars_classify fa stay in the known list.
Summary by CodeRabbit