MCPcopy Index your code
hub / github.com/nodejs/node / isFileAffectingGlobalScope

Function isFileAffectingGlobalScope

test/fixtures/snapshot/typescript.js:119985–119988  ·  view source on GitHub ↗

* Return true if the file will invalidate all files because it affectes global scope

(sourceFile)

Source from the content-addressed store, hash-verified

119983 * Return true if the file will invalidate all files because it affectes global scope
119984 */
119985 function isFileAffectingGlobalScope(sourceFile) {
119986 return containsGlobalScopeAugmentation(sourceFile) ||
119987 !ts.isExternalOrCommonJsModule(sourceFile) && !ts.isJsonSourceFile(sourceFile) && !containsOnlyAmbientModules(sourceFile);
119988 }
119989 /**
119990 * Gets all files of the program excluding the default library file
119991 */

Callers 3

createFunction · 0.85
getAllDependenciesFunction · 0.85

Calls 2

Tested by

no test coverage detected