frontend: provide contextual source repair advice
This commit is contained in:
1 parent
008867fe48
commit
2c6c7a3dcd
37 files changed
+562
-24
No files matched your search
@@ -42,6 +42,8 @@ A key is a single lowercase word; header lines without a `key:` prefix are free-
|
||||
|
||||
`reject` compares the exact multiset of error codes. Listing a code twice means two diagnostics with that code are expected.
|
||||
|
||||
For a source test, optional `<file>.aji.advice` pins structured repair advice: one compact JSON array of `repair_candidates` per diagnostic, in diagnostic order, each followed by a newline. A diagnostic without advice writes `[]`; a program without diagnostics writes no lines. The golden compares exact kinds, hints, alternatives and member order using the CLI's serializer. Source positions and CLI/package parity are additionally checked by the hosted tests.
|
||||
|
||||
## AIR/source rejection twins (P6-7)
|
||||
|
||||
`python3 tools/source_reject_twins.py` checks audited pairs declared by free-form `// AIR twin: <path>` comments in source tests. These comments are separate from `equivalent`, which applies only to runs. `reject-twins.json` records each reviewed rule, governing spec and diagnostic site; a matching code alone does not establish a twin.
|
||||
|
||||
Reference in new issue
Block a user