File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -407,6 +407,10 @@ namespace ts {
407407 return result ;
408408 }
409409
410+ export function isExternalModule ( file : SourceFile ) : boolean {
411+ return file . externalModuleIndicator !== undefined ;
412+ }
413+
410414 // Produces a new SourceFile for the 'newText' provided. The 'textChangeRange' parameter
411415 // indicates what changed between the 'text' that this SourceFile has and the 'newText'.
412416 // The SourceFile will be created with the compiler attempting to reuse as many nodes from
Original file line number Diff line number Diff line change @@ -407,10 +407,6 @@ namespace ts {
407407 return createTextSpanFromBounds ( pos , errorNode . end ) ;
408408 }
409409
410- export function isExternalModule ( file : SourceFile ) : boolean {
411- return file . externalModuleIndicator !== undefined ;
412- }
413-
414410 export function isExternalOrCommonJsModule ( file : SourceFile ) : boolean {
415411 return ( file . externalModuleIndicator || file . commonJsModuleIndicator ) !== undefined ;
416412 }
You can’t perform that action at this time.
0 commit comments