diff options
Diffstat (limited to 'src/syntax')
| -rw-r--r-- | src/syntax/ast.rs | 3 | ||||
| -rw-r--r-- | src/syntax/mod.rs | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/syntax/ast.rs b/src/syntax/ast.rs index 9190953f..ae8ecdc9 100644 --- a/src/syntax/ast.rs +++ b/src/syntax/ast.rs @@ -1,4 +1,6 @@ //! A typed layer over the red-green tree. +//! +//! The AST is rooted in the [`Markup`] node. use std::ops::Deref; @@ -283,6 +285,7 @@ impl Expr { Self::Ident(_) | Self::Call(_) | Self::Let(_) + | Self::Set(_) | Self::If(_) | Self::While(_) | Self::For(_) diff --git a/src/syntax/mod.rs b/src/syntax/mod.rs index b9b00487..d9ad42a8 100644 --- a/src/syntax/mod.rs +++ b/src/syntax/mod.rs @@ -187,7 +187,7 @@ impl From<GreenData> for Green { impl Debug for GreenData { fn fmt(&self, f: &mut Formatter) -> fmt::Result { - write!(f, "{:?}: {}", self.kind, self.len()) + write!(f, "{:?}: {}", self.kind, self.len) } } |
