mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +00:00
Sorry for the rather large size of PR. 😓 But essentially, not changed so much. #### 1. Reorganize directories and namings ``` src/jsdoc ├── builder.rs 👈🏻 for SemanticBuilder ├── finder.rs 👈🏻 `semantic.jsdoc()` ├── mod.rs └── parser ├── jsdoc.rs 👈🏻 `JSDoc` struct which has `comment` and `tags` ├── jsdoc_tag.rs 👈🏻 `JSDocTag` struct ├── mod.rs ├── parse.rs 👈🏻 parsing logic by `JSDocParser` └── utils.rs ``` Now `mod.rs` has only export things. #### 2. Introduce `JSDocTagKind::Unknown(name)` We need to keep their name as-is to check valid tag names are used.(e.g. `jsdoc/check-tag-names` rule) #### 3. Support multiline description - Comment for JSDoc - Comment for each JSDocTag ```js /** * @foo this comment continues * here but leading * should be ignored!! */ ``` - - - Please correct me if I am doing something wrong... 🐰 |
||
|---|---|---|
| .. | ||
| oxc | ||
| oxc_allocator | ||
| oxc_ast | ||
| oxc_cli | ||
| oxc_codegen | ||
| oxc_diagnostics | ||
| oxc_index | ||
| oxc_js_regex | ||
| oxc_language_server | ||
| oxc_linter | ||
| oxc_macros | ||
| oxc_minifier | ||
| oxc_parser | ||
| oxc_prettier | ||
| oxc_semantic | ||
| oxc_span | ||
| oxc_syntax | ||
| oxc_transformer | ||
| oxc_wasm | ||