MCPcopy
hub / github.com/vuejs/core / nextSibling

Function nextSibling

packages/runtime-test/src/nodeOps.ts:222–229  ·  view source on GitHub ↗
(node: TestNode)

Source from the content-addressed store, hash-verified

220}
221
222function nextSibling(node: TestNode): TestNode | null {
223 const parent = node.parentNode
224 if (!parent) {
225 return null
226 }
227 const i = parent.children.indexOf(node)
228 return parent.children[i + 1] || null
229}
230
231function querySelector(): never {
232 throw new Error('querySelector not supported in test renderer.')

Callers 8

hydrateNodeFunction · 0.85
hydrateChildrenFunction · 0.85
hydrateFragmentFunction · 0.85
handleMismatchFunction · 0.85
locateClosingAnchorFunction · 0.85
hydrateAnchorFunction · 0.85
hydrateDisabledTeleportFunction · 0.85
hydrateTeleportFunction · 0.85

Calls 1

indexOfMethod · 0.80

Tested by

no test coverage detected