PR Feedback.

This commit is contained in:
Ron Buckton 2016-02-22 16:26:57 -08:00
parent f52a30be1b
commit 64e7aa8345

View File

@ -215,7 +215,7 @@ const _super = (function (geti, seti) {
onAfterEmitNode = undefined;
isUniqueName = undefined;
temporaryVariables = undefined;
tempFlags = 0;
tempFlags = TempFlags.Auto;
currentSourceFile = undefined;
currentText = undefined;
extendsEmitted = false;
@ -1837,7 +1837,11 @@ const _super = (function (geti, seti) {
}
}
function emitPrologueDirectives(statements: Node[], startWithNewLine?: boolean) {
/**
* Emits any prologue directives at the start of a Statement list, returning the
* number of prologue directives written to the output.
*/
function emitPrologueDirectives(statements: Node[], startWithNewLine?: boolean): number {
for (let i = 0; i < statements.length; i++) {
if (isPrologueDirective(statements[i])) {
if (startWithNewLine || i > 0) {