Skip to content

[Feature] Consider/ Requesting Access to read-only AST of Javascript Parser #675

@ganeshkbhat

Description

@ganeshkbhat

Can you make the AST available as read-only to developers in browsers [rethink security concerns] and js server environments if not on browers? Seems like the mozilla docs Parser_API documentation is somehow removed and I am still wondering how to access the file's parsed, even if read-only, AST

  1. Access AST: Proposal status: Access AST of the javascript module nodejs/node#45158
  2. Use Cases of AST like JS Parsers: access the import cache imported packages cache like require.cache nodejs/node#45207
  3. One of many JS Parsers [Use Cases]: Upgrade to latest version of ECMAScript 2021/ 2022 dop251/goja#498
  4. JS Parsers in the market [Use Cases]: https://github.com/fkling/astexplorer
  5. https://stackoverflow.com/questions/16127985/what-is-javascript-ast-how-to-play-with-it

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