oxc
oxc copied to clipboard
Incorrect `Span` on `BindingIdentifier`
Spans for binding identifiers cover the identifier itself and the type annotation on BindingPattern
. This was introduced in #2624, and is blocking https://github.com/oxc-project/backlog/issues/84.
Expected Behavior
// ___________ BindingPattern
const foo: number = 1
// ^^^-------- TSTypeAnnotation
// ^^^BindingIdentifier
Actual Behavior
// ___________ BindingPattern and BindingIdentifier
const foo: number = 1
// -------- TSTypeAnnotation