1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00

Comments and style fixes

This commit is contained in:
Geoffrey Booth 2017-05-14 12:30:29 -07:00
parent 7134856df2
commit b449e1be60
6 changed files with 69 additions and 92 deletions

View file

@ -480,7 +480,7 @@
fragments = node.compileToFragments(o);
if (!node.isStatement(o)) {
fragments.unshift(this.makeCode(`${this.tab}`));
fragments.push(this.makeCode(";"));
fragments.push(this.makeCode(';'));
}
compiledNodes.push(fragments);
} else {
@ -1666,8 +1666,8 @@
answer.unshift(this.makeCode(`[\n${o.indent}`));
answer.push(this.makeCode(`\n${this.tab}]`));
} else {
answer.unshift(this.makeCode("["));
answer.push(this.makeCode("]"));
answer.unshift(this.makeCode('['));
answer.push(this.makeCode(']'));
}
return answer;
}