MCPcopy Index your code
hub / github.com/solidjs/solid-start / unwrapPath

Function unwrapPath

packages/start/src/directives/paths.ts:52–63  ·  view source on GitHub ↗
(
  path: unknown,
  key: TypeFilter<V>,
)

Source from the content-addressed store, hash-verified

50}
51
52export function unwrapPath<V extends t.Node>(
53 path: unknown,
54 key: TypeFilter<V>,
55): babel.NodePath<V> | undefined {
56 if (isPathValid(path, key)) {
57 return path;
58 }
59 if (isPathValid(path, isNestedExpression)) {
60 return unwrapPath(path.get("expression"), key);
61 }
62 return undefined;
63}

Callers 5

traceBindingFunction · 0.90
ExportDefaultDeclarationFunction · 0.90
ExportNamedDeclarationFunction · 0.90

Calls 1

isPathValidFunction · 0.85

Tested by

no test coverage detected