diff --git a/schala-lang/language/src/ast.rs b/schala-lang/language/src/ast.rs index ae470f1..9baf563 100644 --- a/schala-lang/language/src/ast.rs +++ b/schala-lang/language/src/ast.rs @@ -1,8 +1,6 @@ use std::rc::Rc; -use std::convert::From; use crate::derivative::Derivative; -use crate::symbol_table::FullyQualifiedSymbolName; mod operators; pub use operators::*; @@ -41,40 +39,6 @@ impl ItemIdStore { } } - -#[derive(Clone, Debug, PartialEq)] -pub struct Meta { - pub n: T, - pub fqsn: Option -} - -impl Meta { - pub fn new(n: T) -> Meta { - Meta { n, - fqsn: None, - } - } - - pub fn node(&self) -> &T { - &self.n - } - - pub fn mut_node(&mut self) -> &mut T { - &mut self.n - } -} - -//TODO this PartialEq is here to make tests work - find a way to make it not necessary -#[derive(Clone, Debug, Default, PartialEq)] -struct SourceMap { -} - -impl From for Meta { - fn from(expr: Expression) -> Meta { - Meta::new(expr) - } -} - #[derive(Derivative, Debug)] #[derivative(PartialEq)] pub struct AST {