MCPcopy
hub / github.com/babel/babel / get

Function get

packages/babel-plugin-transform-react-jsx/src/create-plugin.ts:36–37  ·  view source on GitHub ↗
(pass: PluginPass, name: string)

Source from the content-addressed store, hash-verified

34const JSX_FRAG_ANNOTATION_REGEX = /^\s*(?:\*\s*)?@jsxFrag\s+(\S+)\s*$/m;
35
36const get = (pass: PluginPass, name: string) =>
37 pass.get(`@babel/plugin-react-jsx/${name}`);
38const set = (pass: PluginPass, name: string, v: any) =>
39 pass.set(`@babel/plugin-react-jsx/${name}`, v);
40

Callers 7

exitFunction · 0.70
callFunction · 0.70
buildJSXFragmentCallFunction · 0.70
createImportLazilyFunction · 0.70
input.jsFile · 0.50

Calls 1

getMethod · 0.65

Tested by

no test coverage detected