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

Function getJsxFragmentFactoryEntity

test/fixtures/snapshot/typescript.js:87227–87245  ·  view source on GitHub ↗
(location)

Source from the content-addressed store, hash-verified

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

Callers 2

createTypeCheckerFunction · 0.85
getJsxNamespaceFunction · 0.85

Calls 1

getMethod · 0.65

Tested by

no test coverage detected