From 7dd78af459e0a88617594e2caef7989703d5db79 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Tue, 6 Oct 2020 20:27:17 +0200 Subject: [PATCH] =?UTF-8?q?Rename=20ast/tree=20->=20ast/node=20=E2=9C=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/syntax/ast/mod.rs | 7 +++++-- src/syntax/ast/{tree.rs => node.rs} | 5 +---- 2 files changed, 6 insertions(+), 6 deletions(-) rename src/syntax/ast/{tree.rs => node.rs} (96%) diff --git a/src/syntax/ast/mod.rs b/src/syntax/ast/mod.rs index 0d394e54c..60a958a40 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; diff --git a/src/syntax/ast/tree.rs b/src/syntax/ast/node.rs similarity index 96% rename from src/syntax/ast/tree.rs rename to src/syntax/ast/node.rs index 5723710dc..102ef3b5c 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; - /// A syntax node, which encompasses a single logical entity of parsed source /// code. #[derive(Debug, Clone, PartialEq)]