MCPcopy
hub / github.com/livebud/bud / replace

Method replace

package/svelte/compiler.js:5328–5336  ·  view source on GitHub ↗
(parent, prop, index, node2)

Source from the content-addressed store, hash-verified

5326 };
5327 }
5328 replace(parent, prop, index, node2) {
5329 if (parent) {
5330 if (index !== null) {
5331 parent[prop][index] = node2;
5332 } else {
5333 parent[prop] = node2;
5334 }
5335 }
5336 }
5337 remove(parent, prop, index) {
5338 if (parent) {
5339 if (index !== null) {

Callers 15

createViewFunction · 0.80
jsesc2Function · 0.80
createViewFunction · 0.80
createViewFunction · 0.80
wordsRegexpFunction · 0.80
compiler.jsFile · 0.80
stringToNumberFunction · 0.80
stringToBigIntFunction · 0.80
iterate_gramsFunction · 0.80
sanitizeFunction · 0.80
visitMethod · 0.80
get_comment_handlersFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected