MCPcopy Create free account
hub / github.com/babel/babel / ObjectPattern

Function ObjectPattern

packages/babel-plugin-transform-flow-comments/src/index.ts:234–246  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

232 }
233 },
234 ObjectPattern(path) {
235 const { node } = path;
236 if (node.typeAnnotation) {
237 attachComment({
238 ofPath: path.get("typeAnnotation"),
239 toPath: path,
240 optional:
241 node.optional ||
242 // @ts-expect-error Fixme: optional is not in t.TypeAnnotation
243 node.typeAnnotation.optional,
244 });
245 }
246 },
247
248 Flow(
249 path: NodePath<

Callers

nothing calls this directly

Calls 2

attachCommentFunction · 0.85
getMethod · 0.65

Tested by

no test coverage detected