Skip to content

Commit 64e7aa8

Browse files
committed
PR Feedback.
1 parent f52a30b commit 64e7aa8

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/compiler/printer.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ const _super = (function (geti, seti) {
215215
onAfterEmitNode = undefined;
216216
isUniqueName = undefined;
217217
temporaryVariables = undefined;
218-
tempFlags = 0;
218+
tempFlags = TempFlags.Auto;
219219
currentSourceFile = undefined;
220220
currentText = undefined;
221221
extendsEmitted = false;
@@ -1837,7 +1837,11 @@ const _super = (function (geti, seti) {
18371837
}
18381838
}
18391839

1840-
function emitPrologueDirectives(statements: Node[], startWithNewLine?: boolean) {
1840+
/**
1841+
* Emits any prologue directives at the start of a Statement list, returning the
1842+
* number of prologue directives written to the output.
1843+
*/
1844+
function emitPrologueDirectives(statements: Node[], startWithNewLine?: boolean): number {
18411845
for (let i = 0; i < statements.length; i++) {
18421846
if (isPrologueDirective(statements[i])) {
18431847
if (startWithNewLine || i > 0) {

0 commit comments

Comments
 (0)