ItemId type
This commit is contained in:
parent
3eaeeb5509
commit
8b6de6961f
@ -7,6 +7,18 @@ use crate::symbol_table::FullyQualifiedSymbolName;
|
|||||||
mod operators;
|
mod operators;
|
||||||
pub use operators::*;
|
pub use operators::*;
|
||||||
|
|
||||||
|
/// An abstract identifier for an AST node
|
||||||
|
#[derive(Debug, PartialEq, Clone)]
|
||||||
|
pub struct ItemId {
|
||||||
|
idx: u32,
|
||||||
|
}
|
||||||
|
|
||||||
|
impl ItemId {
|
||||||
|
pub fn new(n: u32) -> ItemId {
|
||||||
|
ItemId { idx: n }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#[derive(Clone, Debug, PartialEq)]
|
#[derive(Clone, Debug, PartialEq)]
|
||||||
pub struct Meta<T> {
|
pub struct Meta<T> {
|
||||||
pub n: T,
|
pub n: T,
|
||||||
|
Loading…
Reference in New Issue
Block a user