(field: string, value: number, next?: string | Node)
| 1199 | } |
| 1200 | |
| 1201 | private update(field: string, value: number, next?: string | Node): Node { |
| 1202 | const p = this.llparse; |
| 1203 | |
| 1204 | const res = p.invoke(p.code.update(field, value)); |
| 1205 | if (next !== undefined) { |
| 1206 | res.otherwise(this.node(next)); |
| 1207 | } |
| 1208 | return res; |
| 1209 | } |
| 1210 | |
| 1211 | private resetHeaderState(next: string | Node): Node { |
| 1212 | return this.update('header_state', HEADER_STATE.GENERAL, next); |
no test coverage detected