mirror of
https://github.com/typst/typst
synced 2025-05-13 20:46:23 +08:00
Rename ast/tree -> ast/node ✏
This commit is contained in:
parent
4252f959f7
commit
7dd78af459
@ -2,10 +2,13 @@
|
||||
|
||||
mod expr;
|
||||
mod lit;
|
||||
mod tree;
|
||||
mod node;
|
||||
|
||||
pub use expr::*;
|
||||
pub use lit::*;
|
||||
pub use tree::*;
|
||||
pub use node::*;
|
||||
|
||||
use super::{Ident, SpanVec, Spanned};
|
||||
|
||||
/// A collection of nodes which form a tree together with the nodes' children.
|
||||
pub type SynTree = SpanVec<SynNode>;
|
||||
|
@ -1,10 +1,7 @@
|
||||
//! The syntax tree.
|
||||
//! Syntax tree nodes.
|
||||
|
||||
use super::*;
|
||||
|
||||
/// A collection of nodes which form a tree together with the nodes' children.
|
||||
pub type SynTree = SpanVec<SynNode>;
|
||||
|
||||
/// A syntax node, which encompasses a single logical entity of parsed source
|
||||
/// code.
|
||||
#[derive(Debug, Clone, PartialEq)]
|
Loading…
x
Reference in New Issue
Block a user