(location)
| 87225 | return location ? (getJsxNamespace(location), (ts.getSourceFileOfNode(location).localJsxFactory || _jsxFactoryEntity)) : _jsxFactoryEntity; |
| 87226 | } |
| 87227 | function getJsxFragmentFactoryEntity(location) { |
| 87228 | if (location) { |
| 87229 | var file = ts.getSourceFileOfNode(location); |
| 87230 | if (file) { |
| 87231 | if (file.localJsxFragmentFactory) { |
| 87232 | return file.localJsxFragmentFactory; |
| 87233 | } |
| 87234 | var jsxFragPragmas = file.pragmas.get("jsxfrag"); |
| 87235 | var jsxFragPragma = ts.isArray(jsxFragPragmas) ? jsxFragPragmas[0] : jsxFragPragmas; |
| 87236 | if (jsxFragPragma) { |
| 87237 | file.localJsxFragmentFactory = ts.parseIsolatedEntityName(jsxFragPragma.arguments.factory, languageVersion); |
| 87238 | return file.localJsxFragmentFactory; |
| 87239 | } |
| 87240 | } |
| 87241 | } |
| 87242 | if (compilerOptions.jsxFragmentFactory) { |
| 87243 | return ts.parseIsolatedEntityName(compilerOptions.jsxFragmentFactory, languageVersion); |
| 87244 | } |
| 87245 | } |
| 87246 | function createResolver() { |
| 87247 | // this variable and functions that use it are deliberately moved here from the outer scope |
| 87248 | // to avoid scope pollution |
no test coverage detected