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

Function readVersionEntries

scripts/format-changelog.js:148–160  ·  view source on GitHub ↗
(ctx, versionInfo)

Source from the content-addressed store, hash-verified

146}
147
148function readVersionEntries(ctx, versionInfo) {
149 var entries = [];
150 while (ctx.lineIndex < ctx.lines.length) {
151 const rawEntry = consumeLine(ctx);
152 // Empty line means end of version block.
153 if (rawEntry.text == "") {
154 break;
155 }
156 const entry = readVersionEntry(ctx, rawEntry, versionInfo);
157 entries.push(entry);
158 }
159 return entries;
160}
161
162function readVersionBlock(ctx) {
163 const versionInfo = readVersionHeader(ctx);

Callers 1

readVersionBlockFunction · 0.85

Calls 3

consumeLineFunction · 0.85
readVersionEntryFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected