(node: MINode/*, def?: string*/)
| 104 | } |
| 105 | |
| 106 | public applyChanges(node: MINode/*, def?: string*/) { |
| 107 | this.value = MINode.valueOf(node, 'value'); |
| 108 | /* |
| 109 | if (this.value === undefined) { |
| 110 | this.value = def; |
| 111 | } |
| 112 | */ |
| 113 | const typeChanged = MINode.valueOf(node, 'type_changed'); |
| 114 | if (typeChanged === 'true') { |
| 115 | this.type = MINode.valueOf(node, 'new_type') || this.type; |
| 116 | } |
| 117 | this.dynamic = !!MINode.valueOf(node, 'dynamic'); |
| 118 | this.displayhint = MINode.valueOf(node, 'displayhint'); |
| 119 | this.hasMore = !!MINode.valueOf(node, 'has_more'); |
| 120 | } |
| 121 | |
| 122 | public isCompound(): boolean { |
| 123 | return this.numchild > 0 || |
no test coverage detected