1
0
This commit is contained in:
Jeff 2023-10-22 12:37:15 -04:00
parent 2e3f9ebee2
commit 2066cf7256
2 changed files with 6 additions and 3 deletions

View File

@ -8,7 +8,7 @@ use std::{
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};
use tree_sitter::Node; use tree_sitter::Node;
use crate::{expression, AbstractTree, Error, Expression, Result, Table, Value, VariableMap}; use crate::{AbstractTree, Error, Expression, Result, Table, Value, VariableMap};
#[derive(Debug, Clone, Serialize, Deserialize, Eq, PartialEq, PartialOrd, Ord)] #[derive(Debug, Clone, Serialize, Deserialize, Eq, PartialEq, PartialOrd, Ord)]
pub enum Tool { pub enum Tool {

View File

@ -77,7 +77,10 @@ impl Display for ValueType {
} }
ValueType::Empty => write!(f, "empty"), ValueType::Empty => write!(f, "empty"),
ValueType::Map(_map) => write!(f, "map"), ValueType::Map(_map) => write!(f, "map"),
ValueType::Table { column_names, rows } => { ValueType::Table {
column_names: _,
rows: _,
} => {
write!(f, "table") write!(f, "table")
} }
ValueType::Function(function) => write!(f, "{function}"), ValueType::Function(function) => write!(f, "{function}"),
@ -120,7 +123,7 @@ impl From<&Value> for ValueType {
ValueType::Map(value_nodes) ValueType::Map(value_nodes)
} }
Value::Table(table) => ValueType::Table { Value::Table(_table) => ValueType::Table {
column_names: todo!(), column_names: todo!(),
rows: todo!(), rows: todo!(),
}, },