(fragmentIdsThisRun?: Array<string>)
| 369 | } |
| 370 | |
| 371 | public clearTransientNodes(fragmentIdsThisRun?: Array<string>): AppRoot { |
| 372 | const visitor = new ClearTransientNodesVisitor(fragmentIdsThisRun) |
| 373 | const newChildren = this.root.children.map(node => |
| 374 | this.ensureBlockNode(node.accept(visitor)) |
| 375 | ) |
| 376 | |
| 377 | return new AppRoot( |
| 378 | this.mainScriptHash, |
| 379 | new BlockNode( |
| 380 | this.mainScriptHash, |
| 381 | newChildren, |
| 382 | new BlockProto({ allowEmpty: true }), |
| 383 | this.main.scriptRunId |
| 384 | ), |
| 385 | this.appLogo |
| 386 | ) |
| 387 | } |
| 388 | |
| 389 | /** Return a Set containing all Elements in the tree. */ |
| 390 | public getElements(): Set<Element> { |
no test coverage detected