From dddab86a6ebe1ceb58f3c6f5cfcbbb589634f82d Mon Sep 17 00:00:00 2001 From: Rintaro Itokawa Date: Mon, 29 Jul 2024 19:07:43 +0900 Subject: [PATCH] feat(oxc_ast): wrote document about BlockStatement --- 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 61345a440609c2..6218c00a87b6b9 100644 --- a/crates/oxc_ast/src/ast/js.rs +++ b/crates/oxc_ast/src/ast/js.rs @@ -1126,7 +1126,9 @@ pub struct Hashbang<'a> { pub value: Atom<'a>, } -/// Block Statement +/// `{ let foo = 1; }` in `if(true) { let foo = 1; }` +/// +/// Represents a block statement, which can include a body. #[ast(visit)] #[scope] #[derive(Debug)]