MCPcopy
hub / github.com/sveltejs/svelte / append

Method append

packages/svelte/src/compiler/phases/1-parse/index.js:317–320  ·  view source on GitHub ↗

* @template {AST.Fragment['nodes'][number]} T * @param {T} node * @returns {T}

(node)

Source from the content-addressed store, hash-verified

315 * @returns {T}
316 */
317 append(node) {
318 this.fragments.at(-1)?.nodes.push(node);
319 return node;
320 }
321}
322
323/**

Callers 15

tagFunction · 0.45
openFunction · 0.45
nextFunction · 0.45
specialFunction · 0.45
elementFunction · 0.45
textFunction · 0.45
blockFunction · 0.45
attributesFunction · 0.45
base_elementFunction · 0.45
FragmentFunction · 0.45
DeclarationTagFunction · 0.45
fragment_from_treeFunction · 0.45

Calls 1

pushMethod · 0.80

Tested by 2

testFunction · 0.36
testFunction · 0.36