Skip to content

Ranges: node.start > node.end, but loc still valid #54

@turdwaster

Description

@turdwaster

Test input:

export default class ParamList extends Vue { // Newline here to trigger
@Watch('deepStuff') private onDeepChange() {} } 

Expected result: all nodes have .start < .end
Actual result: some nodes have a very low number as end, < start

Is this the culprit? Was expecting something along the lines of node.end = endLoc.index?

node.end = endLoc.column

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