* Adds the provided child to the snapshot. * @param {Snapshot} child children
(child)
| 535 | * @param {Snapshot} child children |
| 536 | */ |
| 537 | addChild(child) { |
| 538 | if (!this.hasChildren()) { |
| 539 | this.setChildren(new Set()); |
| 540 | } |
| 541 | /** @type {Children} */ |
| 542 | (this.children).add(child); |
| 543 | } |
| 544 | |
| 545 | /** |
| 546 | * Serializes this instance into the provided serializer context. |
no test coverage detected