MCPcopy Index your code
hub / github.com/gTile/gTile / #parseGridSpec

Method #parseGridSpec

src/util/parser.ts:370–380  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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) {

Callers 1

parseMethod · 0.95

Calls 1

#parseColRowSpecMethod · 0.95

Tested by

no test coverage detected