mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +00:00
fix(parser): fix missing end span from TSTypeAliasDeclaration (#2485)
closes #2483
This commit is contained in:
parent
6aa8c2daee
commit
5212f7b51e
2 changed files with 2 additions and 5 deletions
|
|
@ -111,6 +111,7 @@ impl<'a> ParserImpl<'a> {
|
||||||
let annotation = self.parse_ts_type()?;
|
let annotation = self.parse_ts_type()?;
|
||||||
|
|
||||||
self.asi()?;
|
self.asi()?;
|
||||||
|
let span = self.end_span(span);
|
||||||
Ok(self.ast.ts_type_alias_declaration(span, id, annotation, params, modifiers))
|
Ok(self.ast.ts_type_alias_declaration(span, id, annotation, params, modifiers))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
ts compatibility: 20/528 (3.79%)
|
ts compatibility: 22/528 (4.17%)
|
||||||
|
|
||||||
# Failed
|
# Failed
|
||||||
|
|
||||||
|
|
@ -598,9 +598,6 @@ ts compatibility: 20/528 (3.79%)
|
||||||
* last-argument-expansion/edge_case.ts
|
* last-argument-expansion/edge_case.ts
|
||||||
* last-argument-expansion/forward-ref.tsx
|
* last-argument-expansion/forward-ref.tsx
|
||||||
|
|
||||||
### literal
|
|
||||||
* literal/multiline.ts
|
|
||||||
|
|
||||||
### mapped-type
|
### mapped-type
|
||||||
* mapped-type/intersection.ts
|
* mapped-type/intersection.ts
|
||||||
* mapped-type/issue-11098.ts
|
* mapped-type/issue-11098.ts
|
||||||
|
|
@ -758,7 +755,6 @@ ts compatibility: 20/528 (3.79%)
|
||||||
* tsx/url.tsx
|
* tsx/url.tsx
|
||||||
|
|
||||||
### tuple
|
### tuple
|
||||||
* tuple/dangling-comments.ts
|
|
||||||
* tuple/trailing-comma-for-empty-tuples.ts
|
* tuple/trailing-comma-for-empty-tuples.ts
|
||||||
* tuple/trailing-comma-trailing-rest.ts
|
* tuple/trailing-comma-trailing-rest.ts
|
||||||
* tuple/trailing-comma.ts
|
* tuple/trailing-comma.ts
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue