()
| 368 | } |
| 369 | |
| 370 | #parseGridSpec(): GridSpec { |
| 371 | switch (this.token.kind) { |
| 372 | case Literal.$: |
| 373 | return { mode: "cols", cells: [] }; |
| 374 | case Literal.Keyword: |
| 375 | return this.#parseColRowSpec(); |
| 376 | } |
| 377 | |
| 378 | throw new ParseError(`Unexpected token "${this.token.raw}" ` + |
| 379 | `(type: ${this.token.kind}) at pos ${this.token.position}.`); |
| 380 | } |
| 381 | |
| 382 | #parseColRowSpec(): GridSpec { |
| 383 | switch (this.token.kind) { |