diff options
author | Vincent Ambo <mail@tazj.in> | 2022-10-16T23·13+0300 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2022-10-16T23·35+0000 |
commit | 8e9bfc1ca7e1b95419949439f85097e7eb5f840d (patch) | |
tree | eb32feb1206a518c83c50bf3bdba0de86f4da102 /tvix/eval/src/builtins/mod.rs | |
parent | 5ee2258692da4d5c65b22416fcc3ec87db013ff8 (diff) |
fix(tvix/eval): more faithfully serialise ast::Literal r/5149
The previous serialisation format kind of lost the information about what AST node we're dealing with (e.g. `1234` would serialise to an AST with a literal `1234`). That's great for pretty-printing the _code_, but we explicitly want to serialise how rnix-parser parses something. To that end, literals are now instead serialised into a structure like all the other ones (`kind: literal` and appropriate value fields). Change-Id: I586c95d7db41820b8ec43565ba4016ed3834d1b5 Reviewed-on: https://cl.tvl.fyi/c/depot/+/7030 Autosubmit: tazjin <tazjin@tvl.su> Tested-by: BuildkiteCI Reviewed-by: j4m3s <james.landrein@gmail.com> Reviewed-by: Adam Joseph <adam@westernsemico.com>
Diffstat (limited to 'tvix/eval/src/builtins/mod.rs')
0 files changed, 0 insertions, 0 deletions