Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Babel compatible AST #1392

@Gregoor

Description

@Gregoor

Heya,

thanks for this amazingly fast parser! I've been playing with replacing it with Babel's parser, but I also used a number of babel libraries which expect a Babel AST. Namely span to be in-lined (collapsing LogicalExpression into BinaryExpression does not seem to be causing problems). Now I was wondering whether the divergence from Babel's AST is wanted? I can imagine integration into all kinds of related libs to be simpler when conforming to their AST more. Or is there a perf cost associated with these differences?
Would be curious to learn more and I did not find a past issues that made me understand.

Cheers!

Edit: Oh I also just saw that BlockStatement is also shaped differently

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions