File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -735,7 +735,7 @@ module Harness {
735
735
736
736
/** Functionality for compiling TypeScript code */
737
737
export module Compiler {
738
- /** Aggregate letious writes into a single array of lines. Useful for passing to the
738
+ /** Aggregate various writes into a single array of lines. Useful for passing to the
739
739
* TypeScript compiler to fill with source code or errors.
740
740
*/
741
741
export class WriterAggregator implements ITextWriter {
Original file line number Diff line number Diff line change @@ -329,14 +329,16 @@ module Harness.SourceMapRecoder {
329
329
}
330
330
331
331
function writeRecordedSpans ( ) {
332
+ let markerIds : string [ ] = [ ] ;
333
+
332
334
function getMarkerId ( markerIndex : number ) {
333
335
let markerId = "" ;
334
336
if ( spanMarkerContinues ) {
335
337
assert . isTrue ( markerIndex === 0 ) ;
336
338
markerId = "1->" ;
337
339
}
338
340
else {
339
- let markerId = "" + ( markerIndex + 1 ) ;
341
+ markerId = "" + ( markerIndex + 1 ) ;
340
342
if ( markerId . length < 2 ) {
341
343
markerId = markerId + " " ;
342
344
}
@@ -416,7 +418,6 @@ module Harness.SourceMapRecoder {
416
418
writeJsFileLines ( currentJsLine ) ;
417
419
418
420
// Emit markers
419
- var markerIds : string [ ] = [ ] ;
420
421
iterateSpans ( writeSourceMapMarker ) ;
421
422
422
423
let jsFileText = getTextOfLine ( currentJsLine , jsLineMap , jsFile . code ) ;
You can’t perform that action at this time.
0 commit comments