(location)
| 74002 | return result; |
| 74003 | } |
| 74004 | function getJsxNamespaceAt(location) { |
| 74005 | var links = location && getNodeLinks(location); |
| 74006 | if (links && links.jsxNamespace) { |
| 74007 | return links.jsxNamespace; |
| 74008 | } |
| 74009 | if (!links || links.jsxNamespace !== false) { |
| 74010 | var resolvedNamespace = getJsxNamespaceContainerForImplicitImport(location); |
| 74011 | if (!resolvedNamespace || resolvedNamespace === unknownSymbol) { |
| 74012 | var namespaceName = getJsxNamespace(location); |
| 74013 | resolvedNamespace = resolveName(location, namespaceName, 1920 /* SymbolFlags.Namespace */, /*diagnosticMessage*/ undefined, namespaceName, /*isUse*/ false); |
| 74014 | } |
| 74015 | if (resolvedNamespace) { |
| 74016 | var candidate = resolveSymbol(getSymbol(getExportsOfSymbol(resolveSymbol(resolvedNamespace)), JsxNames.JSX, 1920 /* SymbolFlags.Namespace */)); |
| 74017 | if (candidate && candidate !== unknownSymbol) { |
| 74018 | if (links) { |
| 74019 | links.jsxNamespace = candidate; |
| 74020 | } |
| 74021 | return candidate; |
| 74022 | } |
| 74023 | } |
| 74024 | if (links) { |
| 74025 | links.jsxNamespace = false; |
| 74026 | } |
| 74027 | } |
| 74028 | // JSX global fallback |
| 74029 | var s = resolveSymbol(getGlobalSymbol(JsxNames.JSX, 1920 /* SymbolFlags.Namespace */, /*diagnosticMessage*/ undefined)); |
| 74030 | if (s === unknownSymbol) { |
| 74031 | return undefined; // TODO: GH#18217 |
| 74032 | } |
| 74033 | return s; // TODO: GH#18217 |
| 74034 | } |
| 74035 | /** |
| 74036 | * Look into JSX namespace and then look for container with matching name as nameOfAttribPropContainer. |
| 74037 | * Get a single property from that container if existed. Report an error if there are more than one property. |
no test coverage detected
searching dependent graphs…