pub struct ConvertedLivewireComponent {
pub properties: Vec<PublicProperty>,
pub unsupported_properties: Vec<String>,
pub view_name: Option<String>,
pub layout_name: Option<String>,
}Fields§
§properties: Vec<PublicProperty>Every public $prop = <supported literal>; property.
unsupported_properties: Vec<String>One note per public property this phase couldn’t translate - no
literal default at all (Livewire itself allows this; mount()
fills it in later), or a default value that isn’t a plain literal
(an array, null, a constant reference, a method call, …). The
property is left out of the generated struct entirely - an
absent field is honest; a wrong-typed guessed one isn’t.
view_name: Option<String>The dotted view name render()’s own return view('...')...;
call names, if render() has that exact shape. None for
anything else (no render() method, no matching return, a
computed view name) - left for a manual port either way.
layout_name: Option<String>The dotted view name from a chained ->layout('name', [...])
call on the same return view(...)...; statement, if present.
The array argument itself is never read - the shell’s own full
prop set (already threaded to view_name’s own view!(...)
call) is reused for the layout’s call too, covering every real
->layout() array this converter has been run against so far
without a second, redundant PHP-array parser. None for no
->layout(...) call, or one whose first argument isn’t a plain
string literal.