Skip to content

Refactor: Print ChainExpression directly #10244

@fisker

Description

@fisker

Currently, we are transforming ChainElements to OptionalCallExpression and OptionalMemberExpression.

It's supposed to be a temporary workaround for espree and meriyah parser, now typescript parser use this AST type too, it's a standard estree AST, we should support print it directly.

This refactor may need a big change in CallExpression MemberExpression related logic part.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedWe're a small group who can't get to every issue promptly. We’d appreciate help fixing this issue!lang:javascriptIssues affecting JSlocked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.type:refactorIssues about tackling technical debt

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions