autocommit 2022-04-23 00:55:20 CEST
This commit is contained in:
parent
436f383cd6
commit
e3b3d848c3
32 changed files with 1773 additions and 2451 deletions
|
|
@ -445,3 +445,51 @@ macro_rules! fatal {
|
|||
std::process::exit(1);
|
||||
}}
|
||||
}
|
||||
|
||||
macro_rules! tl_node_impl {
|
||||
() => {
|
||||
fn tl_as_node(&self) -> &dyn Node {
|
||||
self
|
||||
}
|
||||
|
||||
fn tl_into_node(self: Rc<Self>) -> Rc<dyn Node> {
|
||||
self
|
||||
}
|
||||
|
||||
fn tl_into_dyn(self: Rc<Self>) -> Rc<dyn ToplevelNode> {
|
||||
self
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
macro_rules! stacked_node_impl {
|
||||
() => {
|
||||
fn stacked_as_node(&self) -> &dyn Node {
|
||||
self
|
||||
}
|
||||
|
||||
fn stacked_into_node(self: Rc<Self>) -> Rc<dyn Node> {
|
||||
self
|
||||
}
|
||||
|
||||
fn stacked_into_dyn(self: Rc<Self>) -> Rc<dyn StackedNode> {
|
||||
self
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
macro_rules! containing_node_impl {
|
||||
() => {
|
||||
fn cnode_as_node(&self) -> &dyn Node {
|
||||
self
|
||||
}
|
||||
|
||||
fn cnode_into_node(self: Rc<Self>) -> Rc<dyn Node> {
|
||||
self
|
||||
}
|
||||
|
||||
fn cnode_into_dyn(self: Rc<Self>) -> Rc<dyn ContainingNode> {
|
||||
self
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue