From 03f8abac6a102bf7feb9bdbdc5ca1fa9cfb3d942 Mon Sep 17 00:00:00 2001 From: greg Date: Fri, 20 Sep 2019 12:03:42 -0700 Subject: [PATCH] Remove Meta type --- schala-lang/language/src/ast.rs | 36 --------------------------------- 1 file changed, 36 deletions(-) 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 {