Use the standard newline function.
This commit is contained in:
parent
c561312bee
commit
e4da8cfea5
@ -88,7 +88,7 @@ export function Decorator(node: Object) {
|
||||
|
||||
function commaSeparatorNewline() {
|
||||
this.token(",");
|
||||
this.push("\n");
|
||||
this.newline();
|
||||
}
|
||||
|
||||
export function CallExpression(node: Object) {
|
||||
|
||||
@ -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(" ");
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user