fix(parser): set span end for TSEnumDeclaration (#2573)

[playground](https://oxc-project.github.io/oxc/playground/?code=3YCAAIDHgICAgICAgICyHorESipoTXPdvBaE9wxyPnC9nb7Q6xEpIf3AzkuhOU2arZOLF1u08q1G2hs5klxiUYA6%2BBkL693d0iAZC%2BUFyne3yIKPv32k8IA%3D)

(Tell me if you prefer that I group this kind of small fixes together)
This commit is contained in:
Arnaud Barré 2024-03-03 06:54:43 +01:00 committed by GitHub
parent 8a81851bf3
commit 670081050f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -34,6 +34,7 @@ impl<'a> ParserImpl<'a> {
let id = self.parse_binding_identifier()?;
let members = TSEnumMemberList::parse(self)?.members;
let span = self.end_span(span);
Ok(self.ast.ts_enum_declaration(span, id, members, modifiers))
}