Rename ast/tree -> ast/node ✏

This commit is contained in:
Laurenz 2020-10-06 20:27:17 +02:00
parent 4252f959f7
commit 7dd78af459
2 changed files with 6 additions and 6 deletions

View File

@ -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>;

View File

@ -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)]