(child: string | SyntaxTreeNode)
| 251 | } |
| 252 | |
| 253 | public push(child: string | SyntaxTreeNode): this { |
| 254 | if ( |
| 255 | this.allChildren.length > 0 && |
| 256 | typeof child === "string" && |
| 257 | typeof this.allChildren[this.allChildren.length - 1] === "string" |
| 258 | ) { |
| 259 | this.allChildren[this.allChildren.length - 1] = |
| 260 | this.allChildren[this.allChildren.length - 1] + child; |
| 261 | return this; |
| 262 | } |
| 263 | this.allChildren.push(child); |
| 264 | return this; |
| 265 | } |
| 266 | |
| 267 | public equals(other: SyntaxTreeNode): boolean { |
| 268 | if (this.type !== other.type) { |
no outgoing calls
no test coverage detected