3
0
mirror of https://github.com/larvit/adf-codec.git synced 2026-11-18 22:25:44 +01:00

Answer prose round 1: 0 🔴, 1 🟡 (0 misread); the three copied helper comments deleted

This commit is contained in:
2026-11-10 22:58:24 +01:00
committed by Lillem4n
parent 3b94524362
commit 1fd07949dd
3 changed files with 0 additions and 3 deletions
@@ -28,7 +28,6 @@ function position(result: Result<AdfDocument, ParseError>): SourcePosition | str
return result.ok ? 'built' : result.error.position
}
// A message is free text: a refusal pins its code and only the facts the message must name.
function refused(result: Result<AdfDocument>, errorCode: ConvertErrorCode, ...facts: string[]): void {
assert.equal(code(result), errorCode)
const message = result.ok ? '' : result.error.message