MCPcopy Index your code
hub / github.com/SplootCode/splootcode / fireMutation

Method fireMutation

packages/core/src/language/node.ts:286–294  ·  view source on GitHub ↗
(mutation: NodeMutation)

Source from the content-addressed store, hash-verified

284 }
285
286 fireMutation(mutation: NodeMutation) {
287 this.mutationObservers.forEach((observer: NodeObserver) => {
288 observer.handleNodeMutation(mutation)
289 })
290 // Only fire global mutations for specific kinds (not annotation/labels)
291 if (mutation.type === NodeMutationType.SET_VALIDITY || mutation.type === NodeMutationType.SET_PROPERTY) {
292 globalMutationDispatcher.handleNodeMutation(mutation)
293 }
294 }
295
296 registerObserver(observer: NodeObserver) {
297 this.mutationObservers.push(observer)

Callers 4

setValidityMethod · 0.95
applyRuntimeErrorMethod · 0.95
setPropertyMethod · 0.95

Calls 1

handleNodeMutationMethod · 0.65

Tested by

no test coverage detected