Skip to content

Commit

Permalink
feat(oxc_ast): wrote document about hashbang
Browse files Browse the repository at this point in the history
  • Loading branch information
re-taro committed Jul 29, 2024
1 parent ab0ed7e commit 16027dc
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 @@ -1113,7 +1113,9 @@ pub struct Directive<'a> {
pub directive: Atom<'a>,
}

/// Hashbang
/// `#! /usr/bin/env node` in `#! /usr/bin/env node`
///
/// Represents a hashbang directive, which can include a value.
#[ast(visit)]
#[derive(Debug, Hash)]
#[cfg_attr(feature = "serialize", derive(Serialize, Tsify))]
Expand Down

0 comments on commit 16027dc

Please sign in to comment.