mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 20:32:10 +00:00
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:
parent
8a81851bf3
commit
670081050f
1 changed files with 1 additions and 0 deletions
|
|
@ -34,6 +34,7 @@ impl<'a> ParserImpl<'a> {
|
||||||
|
|
||||||
let id = self.parse_binding_identifier()?;
|
let id = self.parse_binding_identifier()?;
|
||||||
let members = TSEnumMemberList::parse(self)?.members;
|
let members = TSEnumMemberList::parse(self)?.members;
|
||||||
|
let span = self.end_span(span);
|
||||||
Ok(self.ast.ts_enum_declaration(span, id, members, modifiers))
|
Ok(self.ast.ts_enum_declaration(span, id, members, modifiers))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue