| 144 | } |
| 145 | |
| 146 | fromJsonData(jsondata: any) { |
| 147 | if (jsondata.compilerVisible !== undefined) this.compilerVisible = jsondata.compilerVisible; |
| 148 | if (jsondata.compilerOutputVisible !== undefined) this.compilerOutputVisible = jsondata.compilerOutputVisible; |
| 149 | if (jsondata.arguments !== undefined) this.arguments = jsondata.arguments; |
| 150 | if (jsondata.argumentsVisible !== undefined) this.argumentsVisible = jsondata.argumentsVisible; |
| 151 | if (jsondata.stdin !== undefined) this.stdin = jsondata.stdin; |
| 152 | if (jsondata.stdinVisible !== undefined) this.stdinVisible = jsondata.stdinVisible; |
| 153 | if (jsondata.wrap !== undefined) this.wrap = jsondata.wrap; |
| 154 | |
| 155 | if (typeof this.arguments !== 'string') { |
| 156 | throw new TypeError('unexpected: executor.arguments are supposed to be a string'); |
| 157 | } |
| 158 | |
| 159 | if (jsondata.runtimeTools === undefined) { |
| 160 | this.runtimeTools = []; |
| 161 | } else { |
| 162 | this.runtimeTools = jsondata.runtimeTools; |
| 163 | } |
| 164 | |
| 165 | this.compiler = new ClientStateCompiler(jsondata.compiler); |
| 166 | } |
| 167 | } |
| 168 | |
| 169 | export class ClientStateConformanceView { |