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

Function setFields

test/fixtures/snapshot/typescript.js:31836–31847  ·  view source on GitHub ↗
(sourceFile)

Source from the content-addressed store, hash-verified

31834 }
31835 return sourceFile;
31836 function setFields(sourceFile) {
31837 sourceFile.text = sourceText;
31838 sourceFile.bindDiagnostics = [];
31839 sourceFile.bindSuggestionDiagnostics = undefined;
31840 sourceFile.languageVersion = languageVersion;
31841 sourceFile.fileName = fileName;
31842 sourceFile.languageVariant = ts.getLanguageVariant(scriptKind);
31843 sourceFile.isDeclarationFile = isDeclarationFile;
31844 sourceFile.scriptKind = scriptKind;
31845 setExternalModuleIndicator(sourceFile);
31846 sourceFile.setExternalModuleIndicator = setExternalModuleIndicator;
31847 }
31848 }
31849 function setContextFlag(val, flag) {
31850 if (val) {

Callers 1

createSourceFileFunction · 0.85

Calls 1

Tested by

no test coverage detected