Skip to content

API: add source_text, trivias to Program? #6426

@Boshen

Description

@Boshen

Why do I need to return them separately from ParserReturn and then pass them around to other components? Why can't they stay with Program?

I think I was distracted by how Program needs to be serialized to estree. But we can just skip serializing these data.

Metadata

Metadata

Assignees

Labels

needs-discussionRequires a discussion from the core team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions