oxc/crates/oxc_semantic/src
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
..
checker refactor: rename CompactString to CompactStr (#2619) 2024-03-06 12:24:23 +08:00
class feat(span): remove From<String> and From<Cow> API because they create memory leak (#2628) 2024-03-06 20:38:21 +08:00
jsdoc refactor(semantic/jsdoc): Rework JSDoc struct for better Span handling (#2917) 2024-04-10 14:32:51 +08:00
module_record fix(linter/import): ignore export declaration in no-duplicates (#2863) 2024-03-30 12:57:43 +08:00
binder.rs fix(semantic): flag function expressions with SymbolFlags::Function (#2891) 2024-04-03 10:42:11 +08:00
builder.rs fix(semantic): symbols inside functions and classes incorrectly flagged as exported (#2896) 2024-04-05 23:01:27 +08:00
control_flow.rs refactor: rename CompactString to CompactStr (#2619) 2024-03-06 12:24:23 +08:00
diagnostics.rs refactor: rename CompactString to CompactStr (#2619) 2024-03-06 12:24:23 +08:00
label.rs refactor(semantic): checking label in ContinueStatement based on LabelBuilder (#2202) 2024-01-29 18:24:42 +08:00
lib.rs feat(linter): Implement jsdoc/check-access (#2642) 2024-04-04 22:36:39 +08:00
node.rs feat(semantic): track cfg index per ast node (#2210) 2024-02-01 13:27:20 +08:00
pg.rs fix(oxc_semantic): proper traversal of try statements (#2250) 2024-02-01 20:46:38 +08:00
reference.rs chore: silence erroneous RA warnings for Tsify (#2731) 2024-03-15 12:42:12 +00:00
scope.rs refactor: rename CompactString to CompactStr (#2619) 2024-03-06 12:24:23 +08:00
symbol.rs chore: silence erroneous RA warnings for Tsify (#2731) 2024-03-15 12:42:12 +00:00