oxc/crates
Yuji Sugiura 0a77d621e2
refactor(semantic/jsdoc): Rework JSDoc struct for better Span handling (#2917)
> The error message emphasizes "empty text" so I would put the span on
the extra text.
> https://github.com/oxc-project/oxc/pull/2893#discussion_r1548843621

To address this, special `Span` handling should be implemented for
comment part.

So, this PR introduces:

- `JSDocCommentPart` struct holds raw `.span` and special
`.span_trimmed_first_line()`
- Add `JSDocKindPart`, `JSDocTypePart` and `JSDocTypeNamePart` in the
same manner
  - `JSDocTag` uses these depending on the purpose
2024-04-10 14:32:51 +08:00
..
oxc Release crates v0.12.2 2024-04-08 11:13:13 +08:00
oxc_allocator Release crates v0.12.2 2024-04-08 11:13:13 +08:00
oxc_ast Release crates v0.12.2 2024-04-08 11:13:13 +08:00
oxc_cli fix(cli): if format is json do not print summary information (#2899) (#2925) 2024-04-09 14:26:10 +08:00
oxc_codegen Release crates v0.12.2 2024-04-08 11:13:13 +08:00
oxc_diagnostics fix(cli): if format is json do not print summary information (#2899) (#2925) 2024-04-09 14:26:10 +08:00
oxc_index Release crates v0.12.2 2024-04-08 11:13:13 +08:00
oxc_js_regex refactor: rename CompactString to CompactStr (#2619) 2024-03-06 12:24:23 +08:00
oxc_language_server chore: apply cargo autoinherit (#2826) 2024-03-26 23:57:50 +08:00
oxc_linter refactor(semantic/jsdoc): Rework JSDoc struct for better Span handling (#2917) 2024-04-10 14:32:51 +08:00
oxc_macros chore: bump syn to v2 (#2888) 2024-04-02 20:57:09 +08:00
oxc_minifier Release crates v0.12.2 2024-04-08 11:13:13 +08:00
oxc_module_lexer refactor(ast): add walk_mut functions (#2776) 2024-03-25 20:40:13 +03:30
oxc_parser Release crates v0.12.2 2024-04-08 11:13:13 +08:00
oxc_prettier chore: guard against unsafe code as much as possible. 2024-04-03 19:35:07 +08:00
oxc_semantic refactor(semantic/jsdoc): Rework JSDoc struct for better Span handling (#2917) 2024-04-10 14:32:51 +08:00
oxc_sourcemap feat(sourcemap): add x_google_ignoreList (#2928) 2024-04-09 20:55:04 +08:00
oxc_span Release crates v0.12.2 2024-04-08 11:13:13 +08:00
oxc_syntax Release crates v0.12.2 2024-04-08 11:13:13 +08:00
oxc_transformer feat(transformer): add transform callback methods (#2929) 2024-04-10 11:06:49 +08:00
oxc_wasm feat(transformer): add transform-typescript boilerplate (#2866) 2024-03-30 20:48:35 +08:00