From 11565a40b315212474f52eb576a9fd92b11f1132 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Mon, 20 Dec 2021 14:18:29 +0100 Subject: Set Rules Episode IX: The Rise of Testing --- src/syntax/ast.rs | 3 +++ src/syntax/mod.rs | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'src/syntax') 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 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) } } -- cgit v1.2.3