compiler: a Key reaches a template as its marked text (a component's or a view's Key field, for t(expr)), and a derived key's message names it as one; reseeded, bootstrap-cfree fixpoint holds
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
cc1ea0f4ae
commit
4988adb170
5 changed files with 73023 additions and 72909 deletions
|
|
@ -6,6 +6,7 @@ function vw_set(v: int, ty: pointer, o: pointer, k: pointer, x: pointer, head: N
|
|||
if (ty == "int") { return ` value_set_int({o}, "{k}", {x})\n` }
|
||||
if (ty == "float") { return ` value_set_float({o}, "{k}", {x})\n` }
|
||||
if (ty == "string") { return ` value_set_str({o}, "{k}", {x})\n` }
|
||||
if i18n_is_key_ty(ty) { return ` value_set_str({o}, "{k}", string({x}))\n` } # a Key: its marked text, for t(expr)
|
||||
if (ty == "bool") { return ` value_set_bool({o}, "{k}", {x})\n` }
|
||||
if (ty == "[]int") { return ` value_set_ints({o}, "{k}", {x})\n` }
|
||||
if (ty == "[]float") { return ` value_set_floats({o}, "{k}", {x})\n` }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue