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

Function containsGlobalScopeAugmentation

test/fixtures/snapshot/typescript.js:119979–119981  ·  view source on GitHub ↗

* Return true if file contains anything that augments to global scope we need to build them as if * they are global files as well as module

(sourceFile)

Source from the content-addressed store, hash-verified

119977 * they are global files as well as module
119978 */
119979 function containsGlobalScopeAugmentation(sourceFile) {
119980 return ts.some(sourceFile.moduleAugmentations, function (augmentation) { return ts.isGlobalScopeAugmentation(augmentation.parent); });
119981 }
119982 /**
119983 * Return true if the file will invalidate all files because it affectes global scope
119984 */

Callers 1

Calls 1

someMethod · 0.80

Tested by

no test coverage detected