MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / consumeLine

Function consumeLine

scripts/format-changelog.js:21–28  ·  view source on GitHub ↗
(ctx)

Source from the content-addressed store, hash-verified

19}
20
21function consumeLine(ctx) {
22 if (ctx.lineIndex >= ctx.lines.length) {
23 reportError(ctx, "Unexpected end of file");
24 }
25 const line = ctx.lines[ctx.lineIndex];
26 ctx.lineIndex++;
27 return line;
28}
29
30function peekLine(ctx) {
31 if (ctx.lineIndex >= ctx.lines.length) {

Callers 2

readVersionHeaderFunction · 0.85
readVersionEntriesFunction · 0.85

Calls 1

reportErrorFunction · 0.85

Tested by

no test coverage detected