@@ -21,7 +21,7 @@ import type { PackageJson } from './types/package-json.ts';
2121import type { DependencySet } from './types/workspace.ts' ;
2222import { createManifest , type Manifest } from './util/package-json.ts' ;
2323import { collectStringLiterals , isExternalReExportsOnly } from './typescript/ast-helpers.ts' ;
24- import { parseFile } from './typescript/ast-nodes.ts' ;
24+ import { _parseFile } from './typescript/ast-nodes.ts' ;
2525import { compact } from './util/array.ts' ;
2626import type { MainOptions } from './util/create-options.ts' ;
2727import { debugLogArray , debugLogObject } from './util/debug.ts' ;
@@ -137,7 +137,7 @@ export class WorkspaceWorker {
137137
138138 this . cache = new CacheConsultant ( `plugins-${ name } ` , options ) ;
139139
140- this . getConfigurationHints = timerify ( this . getConfigurationHints . bind ( this ) , 'worker. getConfigurationHints' ) ;
140+ this . getConfigurationHints = timerify ( this . getConfigurationHints . bind ( this ) , 'getConfigurationHints' ) ;
141141 }
142142
143143 public async init ( ) {
@@ -322,7 +322,7 @@ export class WorkspaceWorker {
322322 const configFilesMap = this . configFilesMap ;
323323 const configFiles = this . configFilesMap . get ( wsName ) ;
324324 const seen = new Map < string , Set < string > > ( ) ;
325- const parsedConfigCache = new Map < string , ReturnType < typeof parseFile > | undefined > ( ) ;
325+ const parsedConfigCache = new Map < string , ReturnType < typeof _parseFile > | undefined > ( ) ;
326326
327327 const storeConfigFilePath = ( pluginName : PluginName , input : ConfigInput ) => {
328328 const configFilePath = this . handleInput ( input ) ;
@@ -400,13 +400,13 @@ export class WorkspaceWorker {
400400 continue ;
401401 }
402402
403- let parsed : ReturnType < typeof parseFile > | undefined ;
403+ let parsed : ReturnType < typeof _parseFile > | undefined ;
404404 if ( ! isManifest ) {
405405 if ( parsedConfigCache . has ( configFilePath ) ) {
406406 parsed = parsedConfigCache . get ( configFilePath ) ;
407407 } else {
408408 const sourceText = this . readFile ( configFilePath ) ;
409- parsed = sourceText ? parseFile ( configFilePath , sourceText ) : undefined ;
409+ parsed = sourceText ? _parseFile ( configFilePath , sourceText ) : undefined ;
410410 parsedConfigCache . set ( configFilePath , parsed ) ;
411411 }
412412 }
0 commit comments