File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2074,7 +2074,7 @@ namespace ts {
2074
2074
writeLine ( ) ;
2075
2075
const statements = node . statements ;
2076
2076
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 .
2078
2078
// The synthesized node will have no leading comment so some comments may be missed.
2079
2079
const shouldEmitDetachedComment = statements . length === 0 ||
2080
2080
! isPrologueDirective ( statements [ 0 ] ) ||
@@ -2136,10 +2136,10 @@ namespace ts {
2136
2136
emitPrologueDirectives ( ( sourceFileOrBundle as SourceFile ) . statements ) ;
2137
2137
}
2138
2138
else {
2139
- const seenProgolueDirectives = createMap < String > ( ) ;
2139
+ const seenPrologueDirectives = createMap < String > ( ) ;
2140
2140
for ( const sourceFile of ( sourceFileOrBundle as Bundle ) . sourceFiles ) {
2141
2141
setSourceFile ( sourceFile ) ;
2142
- emitPrologueDirectives ( sourceFile . statements , /*startWithNewLine*/ true , seenProgolueDirectives ) ;
2142
+ emitPrologueDirectives ( sourceFile . statements , /*startWithNewLine*/ true , seenPrologueDirectives ) ;
2143
2143
}
2144
2144
}
2145
2145
}
You can’t perform that action at this time.
0 commit comments