about summary refs log tree commit diff
path: root/corp/website
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2022-09-16T18·51+0300
committertazjin <tazjin@tvl.su>2022-09-17T14·11+0000
commit337d670d0c0e47622c23fb5c9681df4e4a7048a1 (patch)
tree5f3b253fe0854f78ecaaa81954f6c7d60237682b /corp/website
parent3a67a140093335e93cee560c1d2f9873035ffa95 (diff)
feat(tvix/eval): introduce `ToSpan` trait in compiler module r/4883
This trait can be used to convert most structures from rnix-parser
into a codemap::Span. It uses a macro to implement the trait for the
various expression types in the rnix AST, as Rust's silly semantic
versioning restriction stops us from doing a blanket implementation.

This will be used in the next commit to clean up the span handling in
the compiler a bit.

Change-Id: I0a437034e5fa203b5a49c6f25c45932a9f3b2bca
Reviewed-on: https://cl.tvl.fyi/c/depot/+/6615
Tested-by: BuildkiteCI
Reviewed-by: sterni <sternenseemann@systemli.org>
Diffstat (limited to 'corp/website')
0 files changed, 0 insertions, 0 deletions