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

Method setProperty

packages/core/src/language/node.ts:269–279  ·  view source on GitHub ↗
(name: string, value: any)

Source from the content-addressed store, hash-verified

267 }
268
269 setProperty(name: string, value: any) {
270 this.properties[name] = value
271 if (this.enableMutations) {
272 const mutation = new NodeMutation()
273 mutation.node = this
274 mutation.property = name
275 mutation.value = value
276 mutation.type = NodeMutationType.SET_PROPERTY
277 this.fireMutation(mutation)
278 }
279 }
280
281 clean() {
282 // Called when a child or sub-child is deleted.

Callers 15

constructorMethod · 0.80
setNameMethod · 0.80
constructorMethod · 0.80
constructorMethod · 0.80
setMemberMethod · 0.80
constructorMethod · 0.80
setMemberMethod · 0.80
constructorMethod · 0.80
setNameMethod · 0.80

Calls 1

fireMutationMethod · 0.95

Tested by

no test coverage detected