Open turdwaster opened 6 months ago
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? https://github.com/TyrealHu/acorn-typescript/blob/8956dc50370c7ee2ea97a3c903611079192b28d5/src/index.ts#L402
node.end = endLoc.index
Test input:
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
? https://github.com/TyrealHu/acorn-typescript/blob/8956dc50370c7ee2ea97a3c903611079192b28d5/src/index.ts#L402