@@ -14,19 +14,19 @@ interface FileInformation {
1414interface FindFileResult {
1515}
1616
17- interface IOLogFile {
17+ interface IoLogFile {
1818 path : string ;
1919 codepage : number ;
2020 result ?: FileInformation ;
2121}
2222
23- interface IOLog {
23+ interface IoLog {
2424 timestamp : string ;
2525 arguments : string [ ] ;
2626 executingPath : string ;
2727 currentDirectory : string ;
2828 useCustomLibraryFile ?: boolean ;
29- filesRead : IOLogFile [ ] ;
29+ filesRead : IoLogFile [ ] ;
3030 filesWritten : {
3131 path : string ;
3232 contents ?: string ;
@@ -80,16 +80,16 @@ interface IOLog {
8080interface PlaybackControl {
8181 startReplayFromFile ( logFileName : string ) : void ;
8282 startReplayFromString ( logContents : string ) : void ;
83- startReplayFromData ( log : IOLog ) : void ;
83+ startReplayFromData ( log : IoLog ) : void ;
8484 endReplay ( ) : void ;
8585 startRecord ( logFileName : string ) : void ;
8686 endRecord ( ) : void ;
8787}
8888
8989namespace Playback {
90- let recordLog : IOLog = undefined ;
91- let replayLog : IOLog = undefined ;
92- let replayFilesRead : ts . Map < IOLogFile > | undefined = undefined ;
90+ let recordLog : IoLog = undefined ;
91+ let replayLog : IoLog = undefined ;
92+ let replayFilesRead : ts . Map < IoLogFile > | undefined = undefined ;
9393 let recordLogFileNameBase = "" ;
9494
9595 interface Memoized < T > {
@@ -110,11 +110,11 @@ namespace Playback {
110110 return run ;
111111 }
112112
113- export interface PlaybackIO extends Harness . IO , PlaybackControl { }
113+ export interface PlaybackIO extends Harness . Io , PlaybackControl { }
114114
115115 export interface PlaybackSystem extends ts . System , PlaybackControl { }
116116
117- function createEmptyLog ( ) : IOLog {
117+ function createEmptyLog ( ) : IoLog {
118118 return {
119119 timestamp : ( new Date ( ) ) . toString ( ) ,
120120 arguments : [ ] ,
@@ -134,7 +134,7 @@ namespace Playback {
134134 } ;
135135 }
136136
137- export function newStyleLogIntoOldStyleLog ( log : IOLog , host : ts . System | Harness . IO , baseName : string ) {
137+ export function newStyleLogIntoOldStyleLog ( log : IoLog , host : ts . System | Harness . Io , baseName : string ) {
138138 for ( const file of log . filesAppended ) {
139139 if ( file . contentsPath ) {
140140 file . contents = host . readFile ( ts . combinePaths ( baseName , file . contentsPath ) ) ;
@@ -167,7 +167,7 @@ namespace Playback {
167167 return path ;
168168 }
169169
170- export function oldStyleLogIntoNewStyleLog ( log : IOLog , writeFile : typeof Harness . IO . writeFile , baseTestName : string ) {
170+ export function oldStyleLogIntoNewStyleLog ( log : IoLog , writeFile : typeof Harness . IO . writeFile , baseTestName : string ) {
171171 if ( log . filesAppended ) {
172172 for ( const file of log . filesAppended ) {
173173 if ( file . contents !== undefined ) {
@@ -210,8 +210,8 @@ namespace Playback {
210210 }
211211
212212 function initWrapper ( wrapper : PlaybackSystem , underlying : ts . System ) : void ;
213- function initWrapper ( wrapper : PlaybackIO , underlying : Harness . IO ) : void ;
214- function initWrapper ( wrapper : PlaybackSystem | PlaybackIO , underlying : ts . System | Harness . IO ) : void {
213+ function initWrapper ( wrapper : PlaybackIO , underlying : Harness . Io ) : void ;
214+ function initWrapper ( wrapper : PlaybackSystem | PlaybackIO , underlying : ts . System | Harness . Io ) : void {
215215 ts . forEach ( Object . keys ( underlying ) , prop => {
216216 ( < any > wrapper ) [ prop ] = ( < any > underlying ) [ prop ] ;
217217 } ) ;
@@ -261,7 +261,7 @@ namespace Playback {
261261 }
262262 } ;
263263
264- function generateTsconfig ( newLog : IOLog ) : undefined | { compilerOptions : ts . CompilerOptions , files : string [ ] } {
264+ function generateTsconfig ( newLog : IoLog ) : undefined | { compilerOptions : ts . CompilerOptions , files : string [ ] } {
265265 if ( newLog . filesRead . some ( file => / t s c o n f i g .+ j s o n $ / . test ( file . path ) ) ) {
266266 return ;
267267 }
@@ -426,7 +426,7 @@ namespace Playback {
426426 // console.log("Swallowed write operation during replay: " + name);
427427 }
428428
429- export function wrapIO ( underlying : Harness . IO ) : PlaybackIO {
429+ export function wrapIO ( underlying : Harness . Io ) : PlaybackIO {
430430 const wrapper : PlaybackIO = < any > { } ;
431431 initWrapper ( wrapper , underlying ) ;
432432
0 commit comments