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

Function noSymbolError

test/fixtures/snapshot/typescript.js:159116–159119  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

159114 }
159115 var checker = program.getTypeChecker();
159116 var noSymbolError = function (id) {
159117 return (ts.isIdentifier(id) && checker.getSymbolAtLocation(id)) ? undefined
159118 : { error: ts.getLocaleSpecificMessage(ts.Diagnostics.Can_only_convert_named_export) };
159119 };
159120 switch (exportNode.kind) {
159121 case 256 /* SyntaxKind.FunctionDeclaration */:
159122 case 257 /* SyntaxKind.ClassDeclaration */:

Callers 1

getInfoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected