* Parser for dynamic code optimization state.
(s)
| 388 | * Parser for dynamic code optimization state. |
| 389 | */ |
| 390 | static parseState(s) { |
| 391 | switch (s) { |
| 392 | case '': |
| 393 | return this.CodeState.COMPILED; |
| 394 | case '~': |
| 395 | return this.CodeState.IGNITION; |
| 396 | case '^': |
| 397 | return this.CodeState.SPARKPLUG; |
| 398 | case '+': |
| 399 | case '+\'': |
| 400 | case 'o+': |
| 401 | case 'o+\'': |
| 402 | return this.CodeState.MAGLEV; |
| 403 | case '*': |
| 404 | case '*\'': |
| 405 | case 'o*': |
| 406 | case 'o*\'': |
| 407 | return this.CodeState.TURBOFAN; |
| 408 | } |
| 409 | throw new Error(`unknown code state: ${s}`); |
| 410 | } |
| 411 | |
| 412 | static getKindFromState(state) { |
| 413 | if (state === this.CodeState.COMPILED) { |
no outgoing calls
no test coverage detected