From 3d143cc64ce5171c13f45bc81e2d0ab33bda4dc6 Mon Sep 17 00:00:00 2001 From: Jeff Date: Sun, 22 Oct 2023 14:33:08 -0400 Subject: [PATCH] Add debug statement --- src/abstract_tree/identifier.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/abstract_tree/identifier.rs b/src/abstract_tree/identifier.rs index 9b18de9..88b8bea 100644 --- a/src/abstract_tree/identifier.rs +++ b/src/abstract_tree/identifier.rs @@ -22,6 +22,8 @@ impl Identifier { impl AbstractTree for Identifier { fn from_syntax_node(source: &str, node: Node) -> Result { + debug_assert_eq!("identifier", node.kind()); + let identifier = &source[node.byte_range()]; Ok(Identifier(identifier.to_string()))