abstract-syntax-tree
abstract-syntax-tree copied to clipboard
Type Literal instead of BigIntLiteral
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?