Allow to have builtin item function to return a value

This does some refactoring to allow builtin item functions to return a
value:
 - builtin member functions are no longer BuiltinFunction, but they are
   just normal NamedReference
 - Move special case for them in the LLR/eval
This commit is contained in:
Olivier Goffart 2025-03-31 11:54:34 +02:00
parent 28b295b33d
commit fa650ed5ec
15 changed files with 215 additions and 235 deletions

View file

@ -1699,6 +1699,7 @@ impl Element {
declared_pure: p.pure,
is_local_to_component: true,
is_in_direct_base: false,
builtin_function: None,
},
)
}