abstract-syntax-tree icon indicating copy to clipboard operation
abstract-syntax-tree copied to clipboard

Type Literal instead of BigIntLiteral

Open Tc14Hd opened this issue 2 years ago • 0 comments

The code

tree = ast.parse("1000000000000000n");
console.log(tree.body[0].expression);

outputs a node of type "Literal":

{
  type: 'Literal',
  value: 1000000000000000n,
  bigint: '1000000000000000'
}

But the README implies that the type should rather be "BigIntLiteral". Is this a bug?

Tc14Hd avatar Oct 22 '22 01:10 Tc14Hd