Skip to content

replacer with single string fails due to parsing it as a directive #11

@jsoverson

Description

@jsoverson

shift-parser parses a single string (e.g. "foo") as a program with 0 statements and 1 directive, "foo"

Directives in replacers don't matter so shift-refactor should either intelligently promote the directive to a LiteralStringExpression or add a dummy directive to avoid this case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions