Explicitly label standalone tokens and words.

This commit is contained in:
Logan Smyth
2016-04-30 13:45:29 -07:00
parent e702e67233
commit 4286cb4f2a
12 changed files with 245 additions and 220 deletions

View File

@@ -12,7 +12,7 @@ export function Program(node: Object) {
}
export function BlockStatement(node: Object) {
this.push("{");
this.token("{");
this.printInnerComments(node);
if (node.body.length) {
this.newline();
@@ -27,7 +27,7 @@ export function BlockStatement(node: Object) {
this.rightBrace();
} else {
this.source("end", node.loc);
this.push("}");
this.token("}");
}
}