Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Location of JSXAttribute.value inconsistent with other parsers #127

Closed
fisker opened this issue Oct 27, 2020 · 0 comments
Closed

Location of JSXAttribute.value inconsistent with other parsers #127

fisker opened this issue Oct 27, 2020 · 0 comments

Comments

@fisker
Copy link
Collaborator

fisker commented Oct 27, 2020

require("meriyah").parse('<div className="some-class"></div>', {loc: true, ranges: true, jsx: true}).body[0].expression.openingElement.attributes[0].value
{
  type: 'Literal',
  value: 'some-class',
  start: 14,
  end: 27,
  range: [ 14, 27 ],
  loc: { start: { line: 1, column: 14 }, end: { line: 1, column: 27 } }
}

babel/espree/flow all have range [15, 27]

@fisker fisker changed the title Location of JSXAttribute.value inconsistent with other parser Location of JSXAttribute.value inconsistent with other parsers Oct 27, 2020
@3cp 3cp closed this as completed in 076e454 Oct 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant