fix(parser): fix missing end span from TSTypeAliasDeclaration (#2485)

closes #2483
This commit is contained in:
Boshen 2024-02-24 16:51:00 +08:00 committed by GitHub
parent 6aa8c2daee
commit 5212f7b51e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 5 deletions

View file

@ -111,6 +111,7 @@ impl<'a> ParserImpl<'a> {
let annotation = self.parse_ts_type()?;
self.asi()?;
let span = self.end_span(span);
Ok(self.ast.ts_type_alias_declaration(span, id, annotation, params, modifiers))
}

View file

@ -1,4 +1,4 @@
ts compatibility: 20/528 (3.79%)
ts compatibility: 22/528 (4.17%)
# Failed
@ -598,9 +598,6 @@ ts compatibility: 20/528 (3.79%)
* last-argument-expansion/edge_case.ts
* last-argument-expansion/forward-ref.tsx
### literal
* literal/multiline.ts
### mapped-type
* mapped-type/intersection.ts
* mapped-type/issue-11098.ts
@ -758,7 +755,6 @@ ts compatibility: 20/528 (3.79%)
* tsx/url.tsx
### tuple
* tuple/dangling-comments.ts
* tuple/trailing-comma-for-empty-tuples.ts
* tuple/trailing-comma-trailing-rest.ts
* tuple/trailing-comma.ts