Begin deprecating Meta in favor of an ItemId
This commit is contained in:
parent
b91c3c9da5
commit
3eaeeb5509
1
TODO.md
1
TODO.md
@ -1,6 +1,7 @@
|
|||||||
# TODO items
|
# TODO items
|
||||||
|
|
||||||
## General code cleanup
|
## 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 and test open/use statements
|
||||||
-implement field access
|
-implement field access
|
||||||
- standardize on an error type that isn't String
|
- standardize on an error type that isn't String
|
||||||
|
@ -10,16 +10,12 @@ pub use operators::*;
|
|||||||
#[derive(Clone, Debug, PartialEq)]
|
#[derive(Clone, Debug, PartialEq)]
|
||||||
pub struct Meta<T> {
|
pub struct Meta<T> {
|
||||||
pub n: T,
|
pub n: T,
|
||||||
source_map: SourceMap,
|
|
||||||
type_data: TypeData,
|
|
||||||
pub fqsn: Option<FullyQualifiedSymbolName>
|
pub fqsn: Option<FullyQualifiedSymbolName>
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<T> Meta<T> {
|
impl<T> Meta<T> {
|
||||||
pub fn new(n: T) -> Meta<T> {
|
pub fn new(n: T) -> Meta<T> {
|
||||||
Meta { n,
|
Meta { n,
|
||||||
source_map: SourceMap::default(),
|
|
||||||
type_data: TypeData::new(),
|
|
||||||
fqsn: None,
|
fqsn: None,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user