From c0b7b4ebc1230be68e770967dd8791dc891d1a2b Mon Sep 17 00:00:00 2001 From: Rintaro Itokawa Date: Mon, 29 Jul 2024 20:24:17 +0900 Subject: [PATCH] feat(oxc_ast): wrote document about VariableDeclaration --- crates/oxc_ast/src/ast/js.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/oxc_ast/src/ast/js.rs b/crates/oxc_ast/src/ast/js.rs index 310972235f5c2..636432eda7bfa 100644 --- a/crates/oxc_ast/src/ast/js.rs +++ b/crates/oxc_ast/src/ast/js.rs @@ -1831,7 +1831,9 @@ impl<'a> Declaration<'a> { } } -/// Variable Declaration +/// `let a;` in `let a; a = 1;` +/// +/// Represents a variable declaration, which can include a kind, declarations, and modifiers. #[visited_node] #[derive(Debug, Hash)] #[cfg_attr(feature = "serialize", derive(Serialize, Tsify))]