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

Function reportInvalidOptionValue

test/fixtures/snapshot/typescript.js:41119–41124  ·  view source on GitHub ↗
(isError)

Source from the content-addressed store, hash-verified

41117 return value;
41118 }
41119 function reportInvalidOptionValue(isError) {
41120 if (isError) {
41121 errors.push(ts.createDiagnosticForNodeInSourceFile(sourceFile, valueExpression, ts.Diagnostics.Compiler_option_0_requires_a_value_of_type_1, option.name, getCompilerOptionValueTypeString(option)));
41122 invalidReported = true;
41123 }
41124 }
41125 }
41126 function isDoubleQuotedString(node) {
41127 return ts.isStringLiteral(node) && ts.isStringDoubleQuoted(node, sourceFile);

Callers 1

Calls 2

pushMethod · 0.45

Tested by

no test coverage detected