MCPcopy Create free account
hub / github.com/nodejs/node / getUseDefineForClassFields

Function getUseDefineForClassFields

test/fixtures/snapshot/typescript.js:20352–20354  ·  view source on GitHub ↗
(compilerOptions)

Source from the content-addressed store, hash-verified

20350 }
20351 ts.getAllowJSCompilerOption = getAllowJSCompilerOption;
20352 function getUseDefineForClassFields(compilerOptions) {
20353 return compilerOptions.useDefineForClassFields === undefined ? getEmitScriptTarget(compilerOptions) >= 9 /* ScriptTarget.ES2022 */ : compilerOptions.useDefineForClassFields;
20354 }
20355 ts.getUseDefineForClassFields = getUseDefineForClassFields;
20356 function compilerOptionsAffectSemanticDiagnostics(newOptions, oldOptions) {
20357 return optionsHaveChanges(oldOptions, newOptions, ts.semanticDiagnosticsOptionDeclarations);

Callers

nothing calls this directly

Calls 1

getEmitScriptTargetFunction · 0.85

Tested by

no test coverage detected