diff --git a/crates/oxc_ast/src/ast/js.rs b/crates/oxc_ast/src/ast/js.rs index 99cbfdec5ea3c..06981ffc02e90 100644 --- a/crates/oxc_ast/src/ast/js.rs +++ b/crates/oxc_ast/src/ast/js.rs @@ -1,5 +1,6 @@ -// NB: `#[visited_node]` and `#[scope]` attributes on AST nodes do not do anything to the code in this file. -// They are purely markers for codegen used in `oxc_traverse`. See docs in that crate. +// NB: `#[span]`, `#[scope(...)]`, `#[visit(...)]`, `#[visit_as(...)]` and `#[visit_args(...)]` do +// not do anything to the code, They are purely markers for codegen used in +// `tasts/ast_codegen` and `crates/oxc_traverse/scripts`. See docs in that crate. // Silence erroneous warnings from Rust Analyser for `#[derive(Tsify)]` #![allow(non_snake_case)] diff --git a/crates/oxc_ast/src/ast/jsx.rs b/crates/oxc_ast/src/ast/jsx.rs index 05bfe1a13853a..5226f948a9f6d 100644 --- a/crates/oxc_ast/src/ast/jsx.rs +++ b/crates/oxc_ast/src/ast/jsx.rs @@ -1,7 +1,8 @@ //! [JSX](https://facebook.github.io/jsx) -// NB: `#[visited_node]` and `#[scope]` attributes on AST nodes do not do anything to the code in this file. -// They are purely markers for codegen used in `oxc_traverse`. See docs in that crate. +// NB: `#[span]`, `#[scope(...)]`, `#[visit(...)]`, `#[visit_as(...)]` and `#[visit_args(...)]` do +// not do anything to the code, They are purely markers for codegen used in +// `tasts/ast_codegen` and `crates/oxc_traverse/scripts`. See docs in that crate. // Silence erroneous warnings from Rust Analyser for `#[derive(Tsify)]` #![allow(non_snake_case)] diff --git a/crates/oxc_ast/src/ast/literal.rs b/crates/oxc_ast/src/ast/literal.rs index 4acd72cb6230b..c411bc87a78e3 100644 --- a/crates/oxc_ast/src/ast/literal.rs +++ b/crates/oxc_ast/src/ast/literal.rs @@ -1,7 +1,8 @@ //! Literals -// NB: `#[visited_node]` and `#[scope]` attributes on AST nodes do not do anything to the code in this file. -// They are purely markers for codegen used in `oxc_traverse`. See docs in that crate. +// NB: `#[span]`, `#[scope(...)]`, `#[visit(...)]`, `#[visit_as(...)]` and `#[visit_args(...)]` do +// not do anything to the code, They are purely markers for codegen used in +// `tasts/ast_codegen` and `crates/oxc_traverse/scripts`. See docs in that crate. // Silence erroneous warnings from Rust Analyser for `#[derive(Tsify)]` #![allow(non_snake_case)] diff --git a/crates/oxc_ast/src/ast/ts.rs b/crates/oxc_ast/src/ast/ts.rs index d174cd5638050..ae26e5d3ad281 100644 --- a/crates/oxc_ast/src/ast/ts.rs +++ b/crates/oxc_ast/src/ast/ts.rs @@ -3,8 +3,9 @@ //! [AST Spec](https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/ast-spec) //! [Archived TypeScript spec](https://github.com/microsoft/TypeScript/blob/3c99d50da5a579d9fa92d02664b1b66d4ff55944/doc/spec-ARCHIVED.md) -// NB: `#[visited_node]` and `#[scope]` attributes on AST nodes do not do anything to the code in this file. -// They are purely markers for codegen used in `oxc_traverse`. See docs in that crate. +// NB: `#[span]`, `#[scope(...)]`, `#[visit(...)]`, `#[visit_as(...)]` and `#[visit_args(...)]` do +// not do anything to the code, They are purely markers for codegen used in +// `tasts/ast_codegen` and `crates/oxc_traverse/scripts`. See docs in that crate. // Silence erroneous warnings from Rust Analyser for `#[derive(Tsify)]` #![allow(non_snake_case)]