mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +00:00
> 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 |
||
|---|---|---|
| .. | ||
| 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_module_lexer | ||
| oxc_parser | ||
| oxc_prettier | ||
| oxc_semantic | ||
| oxc_sourcemap | ||
| oxc_span | ||
| oxc_syntax | ||
| oxc_transformer | ||
| oxc_wasm | ||