Map the end of block statement nodes to the end of their original location - fixes T7258
This commit is contained in:
@@ -22,8 +22,11 @@ export function BlockStatement(node: Object) {
|
||||
|
||||
this.printSequence(node.body, node, { indent: true });
|
||||
if (!this.format.retainLines && !this.format.concise) this.removeLast("\n");
|
||||
|
||||
this.source("end", node.loc);
|
||||
this.rightBrace();
|
||||
} else {
|
||||
this.source("end", node.loc);
|
||||
this.push("}");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user