refactor(tvix/eval): rename Value::NotFound & OpAttrOrNotFound
grfn suggested clearer naming for these in cl/6166. Change-Id: I83164bf1d1902ebd42272e9d5d63819a0f6a72c5 Reviewed-on: https://cl.tvl.fyi/c/depot/+/6277 Reviewed-by: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
This commit is contained in:
parent
903b57be04
commit
7da5076191
4 changed files with 10 additions and 10 deletions
|
@ -429,7 +429,7 @@ impl Compiler {
|
|||
// next nested element, for all fragments except the last one.
|
||||
for (count, fragment) in node.attrpath().unwrap().attrs().enumerate() {
|
||||
if count > 0 {
|
||||
self.chunk().push_op(OpCode::OpAttrOrNotFound);
|
||||
self.chunk().push_op(OpCode::OpAttrsTrySelect);
|
||||
}
|
||||
|
||||
self.compile_attr(fragment);
|
||||
|
@ -616,7 +616,7 @@ impl Compiler {
|
|||
|
||||
for fragment in path.attrs() {
|
||||
self.compile_attr(fragment);
|
||||
self.chunk().push_op(OpCode::OpAttrOrNotFound);
|
||||
self.chunk().push_op(OpCode::OpAttrsTrySelect);
|
||||
jumps.push(self.chunk().push_op(OpCode::OpJumpIfNotFound(0)));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue