tvl-depot/tvix/eval/builtin-macros
Griffin Smith a1015ba1d7 feat(tvix/eval): Give names to builtin arguments
Refactor the arguments of a Builtin to be a vec of a new BuiltinArgument
struct, which contains the old strictness boolean and also a static
`name` str - this is automatically determined via the ident for the
corresponding function argument in the proc-macro case, and passed in in
the cases where we're still manually calling Builtin::new.

Currently this name is unused, but in the future this can be used as
part of a documentation system for builtins.

Change-Id: Ib9dadb15b69bf8c9ea1983a4f4f197294a2394a6
Reviewed-on: https://cl.tvl.fyi/c/depot/+/7204
Reviewed-by: tazjin <tazjin@tvl.su>
Tested-by: BuildkiteCI
2022-11-08 13:42:37 +00:00
..
src feat(tvix/eval): Give names to builtin arguments 2022-11-08 13:42:37 +00:00
tests refactor(tvix/eval): Be clearer about public interface 2022-11-08 13:42:37 +00:00
.gitignore feat(tvix/eval): Add a proc-macro for defining builtins 2022-11-08 13:42:37 +00:00
Cargo.lock feat(tvix/eval): Add a proc-macro for defining builtins 2022-11-08 13:42:37 +00:00
Cargo.toml feat(tvix/eval): Add a proc-macro for defining builtins 2022-11-08 13:42:37 +00:00