oxc/crates/oxc_semantic
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
..
examples refactor: remove panic! from examples (#2454) 2024-02-20 16:18:39 +08:00
src refactor(semantic/jsdoc): Rework JSDoc struct for better Span handling (#2917) 2024-04-10 14:32:51 +08:00
tests fix(semantic): symbols inside functions and classes incorrectly flagged as exported (#2896) 2024-04-05 23:01:27 +08:00
Cargo.toml Release crates v0.12.2 2024-04-08 11:13:13 +08:00
CHANGELOG.md Release crates v0.12.2 2024-04-08 11:13:13 +08:00