mirror of
https://github.com/typst/typst
synced 2025-05-14 17:15:28 +08:00
Rename ast/tree -> ast/node ✏
This commit is contained in:
parent
4252f959f7
commit
7dd78af459
@ -2,10 +2,13 @@
|
|||||||
|
|
||||||
mod expr;
|
mod expr;
|
||||||
mod lit;
|
mod lit;
|
||||||
mod tree;
|
mod node;
|
||||||
|
|
||||||
pub use expr::*;
|
pub use expr::*;
|
||||||
pub use lit::*;
|
pub use lit::*;
|
||||||
pub use tree::*;
|
pub use node::*;
|
||||||
|
|
||||||
use super::{Ident, SpanVec, Spanned};
|
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::*;
|
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
|
/// A syntax node, which encompasses a single logical entity of parsed source
|
||||||
/// code.
|
/// code.
|
||||||
#[derive(Debug, Clone, PartialEq)]
|
#[derive(Debug, Clone, PartialEq)]
|
Loading…
x
Reference in New Issue
Block a user