Begin deprecating Meta in favor of an ItemId

This commit is contained in:
greg 2019-09-11 09:24:44 -07:00
parent b91c3c9da5
commit 3eaeeb5509
2 changed files with 1 additions and 4 deletions

View File

@ -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

View File

@ -10,16 +10,12 @@ pub use operators::*;
#[derive(Clone, Debug, PartialEq)]
pub struct Meta<T> {
pub n: T,
source_map: SourceMap,
type_data: TypeData,
pub fqsn: Option<FullyQualifiedSymbolName>
}
impl<T> Meta<T> {
pub fn new(n: T) -> Meta<T> {
Meta { n,
source_map: SourceMap::default(),
type_data: TypeData::new(),
fqsn: None,
}
}