MCPcopy Create free account
hub / github.com/SplootCode/splootcode / constructor

Method constructor

packages/core/src/language/node.ts:56–70  ·  view source on GitHub ↗
(parent: ParentReference, type: string)

Source from the content-addressed store, hash-verified

54 metadata: Map<string, any>
55
56 constructor(parent: ParentReference, type: string) {
57 this.parent = parent
58 this.type = type
59 this.matchingID = generateMatchingID()
60 this.isValid = true
61 this.invalidReason = ''
62 this.childSets = {}
63 this.childSetOrder = []
64 this.childSetWrapPriorityOrder = null
65 this.properties = {}
66 this.enableMutations = false
67 this.mutationObservers = []
68 this.isRepeatableBlock = false
69 this.metadata = new Map()
70 }
71
72 get hasChildSets(): boolean {
73 return this.childSetOrder.length !== 0

Callers

nothing calls this directly

Calls 1

generateMatchingIDFunction · 0.85

Tested by

no test coverage detected