This repository was archived by the owner on Jan 19, 2019. It is now read-only.
This repository was archived by the owner on Jan 19, 2019. It is now read-only.
JSXText nodes are mislabeled as Literal nodes #266
Closed
Description
What version of TypeScript are you using?
2.3.2
What version of typescript-eslint-parser
are you using?
What code were you trying to parse?
<a> </a>
What did you expect to happen?
Program.body[0].expression.children[0]
should be a JSXText
node.
What happened?
Program.body[0].expression.children[0]
is a Literal
node.
{ type: 'Literal',
range: [ 3, 4 ],
loc: { start: { line: 1, column: 3 }, end: { line: 1, column: 4 } },
value: ' ',
raw: ' ' }