cl-ast: Remove Option-like "*Kind"s

This commit is contained in:
2025-03-11 23:32:58 -05:00
parent 2fc847fff2
commit fdf076c272
12 changed files with 105 additions and 190 deletions

View File

@@ -3,6 +3,8 @@
//! The most permanent fix is a temporary one.
use cl_ast::{format::FmtAdapter, Expr, Sym};
use crate::env::Place;
use super::{
builtin::Builtin,
error::{Error, IResult},
@@ -52,9 +54,9 @@ pub enum ConValue {
/// A string
String(Sym),
/// A reference
Ref(usize),
Ref(Place),
/// A reference to an array
Slice(usize, usize),
Slice(Place, usize),
/// An Array
Array(Box<[ConValue]>),
/// A tuple