Skip to content

Commit 63f3520

Browse files
author
Kanchalai Tanglertsampan
committed
Address PR: fix spelling
1 parent a057475 commit 63f3520

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/compiler/emitter.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2074,7 +2074,7 @@ namespace ts {
20742074
writeLine();
20752075
const statements = node.statements;
20762076
if (emitBodyWithDetachedComments) {
2077-
// Emit detached comment if there iare no prologue directives or this is a synthesized prologue directives.
2077+
// Emit detached comment if there are no prologue directives or if the first node is synthesized.
20782078
// The synthesized node will have no leading comment so some comments may be missed.
20792079
const shouldEmitDetachedComment = statements.length === 0 ||
20802080
!isPrologueDirective(statements[0]) ||
@@ -2136,10 +2136,10 @@ namespace ts {
21362136
emitPrologueDirectives((sourceFileOrBundle as SourceFile).statements);
21372137
}
21382138
else {
2139-
const seenProgolueDirectives = createMap<String>();
2139+
const seenPrologueDirectives = createMap<String>();
21402140
for (const sourceFile of (sourceFileOrBundle as Bundle).sourceFiles) {
21412141
setSourceFile(sourceFile);
2142-
emitPrologueDirectives(sourceFile.statements, /*startWithNewLine*/ true, seenProgolueDirectives);
2142+
emitPrologueDirectives(sourceFile.statements, /*startWithNewLine*/ true, seenPrologueDirectives);
21432143
}
21442144
}
21452145
}

0 commit comments

Comments
 (0)