Use the standard newline function.

This commit is contained in:
Logan Smyth 2016-05-01 18:44:38 -07:00
parent c561312bee
commit e4da8cfea5
2 changed files with 3 additions and 3 deletions

View File

@ -88,7 +88,7 @@ export function Decorator(node: Object) {
function commaSeparatorNewline() {
this.token(",");
this.push("\n");
this.newline();
}
export function CallExpression(node: Object) {

View File

@ -208,14 +208,14 @@ export function DebuggerStatement() {
function variableDeclarationIdent() {
// "let " or "var " indentation.
this.token(",");
this.push("\n");
this.newline();
for (let i = 0; i < 4; i++) this.push(" ");
}
function constDeclarationIdent() {
// "const " indentation.
this.token(",");
this.push("\n");
this.newline();
for (let i = 0; i < 6; i++) this.push(" ");
}