@@ -45,7 +45,7 @@ namespace ts.projectSystem {
4545 getLogFileName : ( ) : string => undefined
4646 } ;
4747
48- export const { content : libFileContent } = Harness . getDefaultLibraryFile ( Harness . IO ) ;
48+ const { content : libFileContent } = Harness . getDefaultLibraryFile ( Harness . IO ) ;
4949 export const libFile : FileOrFolder = {
5050 path : "/a/lib/lib.d.ts" ,
5151 content : libFileContent
@@ -118,7 +118,7 @@ namespace ts.projectSystem {
118118 return JSON . stringify ( { dependencies } ) ;
119119 }
120120
121- export function getExecutingFilePathFromLibFile ( ) : string {
121+ function getExecutingFilePathFromLibFile ( ) : string {
122122 return combinePaths ( getDirectoryPath ( libFile . path ) , "tsc.js" ) ;
123123 }
124124
@@ -130,7 +130,7 @@ namespace ts.projectSystem {
130130 return map ( fileNames , toExternalFile ) ;
131131 }
132132
133- export class TestServerEventManager {
133+ class TestServerEventManager {
134134 public events : server . ProjectServiceEvent [ ] = [ ] ;
135135
136136 handler : server . ProjectServiceEventHandler = ( event : server . ProjectServiceEvent ) => {
@@ -143,7 +143,7 @@ namespace ts.projectSystem {
143143 }
144144 }
145145
146- export interface TestServerHostCreationParameters {
146+ interface TestServerHostCreationParameters {
147147 useCaseSensitiveFileNames ?: boolean ;
148148 executingFilePath ?: string ;
149149 currentDirectory ?: string ;
@@ -205,7 +205,7 @@ namespace ts.projectSystem {
205205 return new TestSession ( opts ) ;
206206 }
207207
208- export interface CreateProjectServiceParameters {
208+ interface CreateProjectServiceParameters {
209209 cancellationToken ?: HostCancellationToken ;
210210 logger ?: server . Logger ;
211211 useSingleInferredProject ?: boolean ;
@@ -253,15 +253,15 @@ namespace ts.projectSystem {
253253 entries : FSEntry [ ] ;
254254 }
255255
256- export function isFolder ( s : FSEntry ) : s is Folder {
256+ function isFolder ( s : FSEntry ) : s is Folder {
257257 return isArray ( ( < Folder > s ) . entries ) ;
258258 }
259259
260- export function isFile ( s : FSEntry ) : s is File {
260+ function isFile ( s : FSEntry ) : s is File {
261261 return typeof ( < File > s ) . content === "string" ;
262262 }
263263
264- export function addFolder ( fullPath : string , toPath : ( s : string ) => Path , fs : Map < FSEntry > ) : Folder {
264+ function addFolder ( fullPath : string , toPath : ( s : string ) => Path , fs : Map < FSEntry > ) : Folder {
265265 const path = toPath ( fullPath ) ;
266266 if ( fs . has ( path ) ) {
267267 Debug . assert ( isFolder ( fs . get ( path ) ) ) ;
@@ -279,29 +279,29 @@ namespace ts.projectSystem {
279279 return entry ;
280280 }
281281
282- export function checkMapKeys ( caption : string , map : Map < any > , expectedKeys : string [ ] ) {
282+ function checkMapKeys ( caption : string , map : Map < any > , expectedKeys : string [ ] ) {
283283 assert . equal ( map . size , expectedKeys . length , `${ caption } : incorrect size of map` ) ;
284284 for ( const name of expectedKeys ) {
285285 assert . isTrue ( map . has ( name ) , `${ caption } is expected to contain ${ name } , actual keys: ${ arrayFrom ( map . keys ( ) ) } ` ) ;
286286 }
287287 }
288288
289- export function checkFileNames ( caption : string , actualFileNames : string [ ] , expectedFileNames : string [ ] ) {
289+ function checkFileNames ( caption : string , actualFileNames : string [ ] , expectedFileNames : string [ ] ) {
290290 assert . equal ( actualFileNames . length , expectedFileNames . length , `${ caption } : incorrect actual number of files, expected ${ JSON . stringify ( expectedFileNames ) } , got ${ actualFileNames } ` ) ;
291291 for ( const f of expectedFileNames ) {
292292 assert . isTrue ( contains ( actualFileNames , f ) , `${ caption } : expected to find ${ f } in ${ JSON . stringify ( actualFileNames ) } ` ) ;
293293 }
294294 }
295295
296- export function checkNumberOfConfiguredProjects ( projectService : server . ProjectService , expected : number ) {
296+ function checkNumberOfConfiguredProjects ( projectService : server . ProjectService , expected : number ) {
297297 assert . equal ( projectService . configuredProjects . length , expected , `expected ${ expected } configured project(s)` ) ;
298298 }
299299
300- export function checkNumberOfExternalProjects ( projectService : server . ProjectService , expected : number ) {
300+ function checkNumberOfExternalProjects ( projectService : server . ProjectService , expected : number ) {
301301 assert . equal ( projectService . externalProjects . length , expected , `expected ${ expected } external project(s)` ) ;
302302 }
303303
304- export function checkNumberOfInferredProjects ( projectService : server . ProjectService , expected : number ) {
304+ function checkNumberOfInferredProjects ( projectService : server . ProjectService , expected : number ) {
305305 assert . equal ( projectService . inferredProjects . length , expected , `expected ${ expected } inferred project(s)` ) ;
306306 }
307307
@@ -315,19 +315,19 @@ namespace ts.projectSystem {
315315 checkMapKeys ( "watchedFiles" , host . watchedFiles , expectedFiles ) ;
316316 }
317317
318- export function checkWatchedDirectories ( host : TestServerHost , expectedDirectories : string [ ] ) {
318+ function checkWatchedDirectories ( host : TestServerHost , expectedDirectories : string [ ] ) {
319319 checkMapKeys ( "watchedDirectories" , host . watchedDirectories , expectedDirectories ) ;
320320 }
321321
322322 export function checkProjectActualFiles ( project : server . Project , expectedFiles : string [ ] ) {
323323 checkFileNames ( `${ server . ProjectKind [ project . projectKind ] } project, actual files` , project . getFileNames ( ) , expectedFiles ) ;
324324 }
325325
326- export function checkProjectRootFiles ( project : server . Project , expectedFiles : string [ ] ) {
326+ function checkProjectRootFiles ( project : server . Project , expectedFiles : string [ ] ) {
327327 checkFileNames ( `${ server . ProjectKind [ project . projectKind ] } project, rootFileNames` , project . getRootFiles ( ) , expectedFiles ) ;
328328 }
329329
330- export class Callbacks {
330+ class Callbacks {
331331 private map : TimeOutCallback [ ] = [ ] ;
332332 private nextId = 1 ;
333333
@@ -363,7 +363,7 @@ namespace ts.projectSystem {
363363 }
364364 }
365365
366- export type TimeOutCallback = ( ) => any ;
366+ type TimeOutCallback = ( ) => any ;
367367
368368 export class TestServerHost implements server . ServerHost {
369369 args : string [ ] = [ ] ;
0 commit comments