MCPcopy
hub / github.com/vitejs/vite / isNodeInPattern

Function isNodeInPattern

packages/vite/src/node/ssr/ssrTransform.ts:445–446  ·  view source on GitHub ↗
(node: ESTree.Node)

Source from the content-addressed store, hash-verified

443const setIsNodeInPattern = (node: ESTreeProperty) =>
444 isNodeInPatternWeakSet.add(node)
445const isNodeInPattern = (node: ESTree.Node): node is ESTreeProperty =>
446 isNodeInPatternWeakSet.has(node)
447
448/**
449 * Same logic from \@vue/compiler-core & \@vue/compiler-sfc

Callers 2

onIdentifierFunction · 0.85
isRefIdentifierFunction · 0.85

Calls 1

hasMethod · 0.80

Tested by

no test coverage detected