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

Method constructor

packages/language-web/types/js/assignment.ts:39–45  ·  view source on GitHub ↗
(parentReference: ParentReference)

Source from the content-addressed store, hash-verified

37
38export class Assignment extends JavaScriptSplootNode {
39 constructor(parentReference: ParentReference) {
40 super(parentReference, ASSIGNMENT)
41 this.addChildSet('left', ChildSetType.Immutable, NodeCategory.Expression)
42 this.getChildSet('left').addChild(new SplootExpression(null))
43 this.addChildSet('right', ChildSetType.Immutable, NodeCategory.Expression)
44 this.getChildSet('right').addChild(new SplootExpression(null))
45 }
46
47 getLeft() {
48 return this.getChildSet('left')

Callers

nothing calls this directly

Calls 3

addChildSetMethod · 0.80
addChildMethod · 0.80
getChildSetMethod · 0.45

Tested by

no test coverage detected