Skip to content

Commit

Permalink
feat(oxc_ast): wrote document about BlockStatement
Browse files Browse the repository at this point in the history
  • Loading branch information
re-taro committed Jul 29, 2024
1 parent 16027dc commit dddab86
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/oxc_ast/src/ast/js.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down

0 comments on commit dddab86

Please sign in to comment.