summaryrefslogtreecommitdiff
path: root/src/syntax
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2020-10-06 20:27:17 +0200
committerLaurenz <laurmaedje@gmail.com>2020-10-06 20:27:17 +0200
commit7dd78af459e0a88617594e2caef7989703d5db79 (patch)
tree5e6697443c66aaaee69bb6787c08e862eb92b884 /src/syntax
parent4252f959f74b94e0079178b32bf758f889c8cd95 (diff)
Rename ast/tree -> ast/node ✏
Diffstat (limited to 'src/syntax')
-rw-r--r--src/syntax/ast/mod.rs7
-rw-r--r--src/syntax/ast/node.rs (renamed from src/syntax/ast/tree.rs)5
2 files changed, 6 insertions, 6 deletions
diff --git a/src/syntax/ast/mod.rs b/src/syntax/ast/mod.rs
index 0d394e54..60a958a4 100644
--- a/src/syntax/ast/mod.rs
+++ b/src/syntax/ast/mod.rs
@@ -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>;
diff --git a/src/syntax/ast/tree.rs b/src/syntax/ast/node.rs
index 5723710d..102ef3b5 100644
--- a/src/syntax/ast/tree.rs
+++ b/src/syntax/ast/node.rs
@@ -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)]