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

Method clean

packages/language-web/types/js/expression.ts:108–114  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

106 }
107
108 clean() {
109 // If this expression is now empty, call `clean` on the parent.
110 // If the parent doesn't allow empty expressions, it'll delete it.
111 if (this.getTokenSet().getCount() === 0) {
112 this.parent.node.clean()
113 }
114 }
115
116 static deserializer(serializedNode: SerializedNode): SplootExpression {
117 const res = new SplootExpression(null)

Callers

nothing calls this directly

Calls 2

getTokenSetMethod · 0.95
getCountMethod · 0.80

Tested by

no test coverage detected