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

Function needsJsxNamespaceFix

test/fixtures/snapshot/typescript.js:153601–153606  ·  view source on GitHub ↗
(jsxNamespace, symbolToken, checker)

Source from the content-addressed store, hash-verified

153599 return symbolToken.text;
153600 }
153601 function needsJsxNamespaceFix(jsxNamespace, symbolToken, checker) {
153602 if (ts.isIntrinsicJsxName(symbolToken.text))
153603 return true; // If we were triggered by a matching error code on an intrinsic, the error must have been about missing the JSX factory
153604 var namespaceSymbol = checker.resolveName(jsxNamespace, symbolToken, 111551 /* SymbolFlags.Value */, /*excludeGlobals*/ true);
153605 return !namespaceSymbol || ts.some(namespaceSymbol.declarations, ts.isTypeOnlyImportOrExportDeclaration) && !(namespaceSymbol.flags & 111551 /* SymbolFlags.Value */);
153606 }
153607 // Returns a map from an exported symbol's ID to a list of every way it's (re-)exported.
153608 function getExportInfos(symbolName, isJsxTagName, currentTokenMeaning, cancellationToken, fromFile, program, useAutoImportProvider, host, preferences) {
153609 var _a;

Callers 1

getSymbolNameFunction · 0.85

Calls 1

someMethod · 0.80

Tested by

no test coverage detected