From 3eaeeb550962d281df756d7c727d6fd6b78bba78 Mon Sep 17 00:00:00 2001 From: greg Date: Wed, 11 Sep 2019 09:24:44 -0700 Subject: [PATCH] Begin deprecating Meta in favor of an ItemId --- TODO.md | 1 + schala-lang/language/src/ast.rs | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/TODO.md b/TODO.md index 564d26c..e33a0f2 100644 --- a/TODO.md +++ b/TODO.md @@ -1,6 +1,7 @@ # TODO items ## General code cleanup +-experiment with storing metadata via ItemIds on AST nodes (cf. https://rust-lang.github.io/rustc-guide/hir.html, https://github.com/rust-lang/rust/blob/master/src/librustc/hir/mod.rs ) -implement and test open/use statements -implement field access - standardize on an error type that isn't String diff --git a/schala-lang/language/src/ast.rs b/schala-lang/language/src/ast.rs index af660d9..8fc50c2ee 100644 --- a/schala-lang/language/src/ast.rs +++ b/schala-lang/language/src/ast.rs @@ -10,16 +10,12 @@ pub use operators::*; #[derive(Clone, Debug, PartialEq)] pub struct Meta { pub n: T, - source_map: SourceMap, - type_data: TypeData, pub fqsn: Option } impl Meta { pub fn new(n: T) -> Meta { Meta { n, - source_map: SourceMap::default(), - type_data: TypeData::new(), fqsn: None, } }