MCPcopy Create free account
hub / github.com/reactjs/react-docgen / import

Method import

packages/react-docgen/src/FileState.ts:63–65  ·  view source on GitHub ↗

* Try to resolve and import the ImportPath with the `name`

(path: ImportPath, name: string)

Source from the content-addressed store, hash-verified

61 * Try to resolve and import the ImportPath with the `name`
62 */
63 import(path: ImportPath, name: string): NodePath | null {
64 return this.#importer(path, name, this);
65 }
66
67 /**
68 * Parse the content of a new file

Callers 2

findScopePathFunction · 0.80
resolveToValueFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected