One step in a template's text.
(c: number)
| 391 | |
| 392 | /** One step in a template's text. */ |
| 393 | private template(c: number): boolean { |
| 394 | const src = this.src; |
| 395 | const i = this.i; |
| 396 | if (c === 96) { |
| 397 | this.stack.pop(); |
| 398 | this.i = i + 1; |
| 399 | this.exprEnd = true; |
| 400 | this.afterDot = false; |
| 401 | return true; |
| 402 | } |
| 403 | if (c === 92) { |
| 404 | this.blank(i, i + 2); |
| 405 | this.i = i + 2; |
| 406 | return true; |
| 407 | } |
| 408 | if (c === 36 && src.charCodeAt(i + 1) === 123) { |
| 409 | this.codeFrame(); |
| 410 | this.i = i + 2; |
| 411 | return true; |
| 412 | } |
| 413 | let end = i + 1; |
| 414 | for (let e = src.charCodeAt(end); end < this.n && e !== 96 && e !== 92 && e !== 36; e = src.charCodeAt(++end)); |
| 415 | this.blank(i, end); |
| 416 | this.i = end; |
| 417 | return true; |
| 418 | } |
| 419 | |
| 420 | /** One step in an element's opening tag. False when the file is given up. */ |
| 421 | private tag(top: Frame, c: number): boolean { |