(value: string)
| 210 | } |
| 211 | |
| 212 | private push(value: string) { |
| 213 | if ( |
| 214 | value.startsWith(')') || |
| 215 | value.startsWith(':') || |
| 216 | value.startsWith(']') || |
| 217 | value.startsWith('}') || |
| 218 | value.startsWith(',') || |
| 219 | value.startsWith('?') |
| 220 | ) { |
| 221 | // clear last ',' or ';'; |
| 222 | let index = this.buf.length - 1; |
| 223 | let ch: string = this.buf[index]; |
| 224 | if (ch.endsWith(',') || ch.endsWith(';')) { |
| 225 | ch = ch.substring(0, ch.length - 1); |
| 226 | this.buf[index] = ch; |
| 227 | } |
| 228 | } |
| 229 | this.buf.push(value); |
| 230 | } |
| 231 | |
| 232 | emitList(values: any[], sep: string = ',') { |
| 233 | let separator = false; |
no outgoing calls