1
0
dust/src/abstract_tree/match.rs

23 lines
571 B
Rust
Raw Normal View History

2023-10-06 17:32:58 +00:00
//! Pattern matching.
//!
//! Note that this module is called "match" but is escaped as "r#match" because
//! "match" is a keyword in Rust.
use serde::{Deserialize, Serialize};
use tree_sitter::Node;
use crate::{AbstractTree, Result, Value, VariableMap};
#[derive(Debug, Clone, Serialize, Deserialize, Eq, PartialEq, PartialOrd, Ord)]
pub struct Match {}
impl AbstractTree for Match {
2023-10-06 21:11:50 +00:00
fn from_syntax_node(_node: Node, _source: &str) -> Result<Self> {
2023-10-06 17:32:58 +00:00
todo!()
}
2023-10-06 21:11:50 +00:00
fn run(&self, _context: &mut VariableMap) -> Result<Value> {
2023-10-06 17:32:58 +00:00
todo!()
}
}