mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-23 16:52:18 +01:00
Refactor the bounds checker's list of reasons.
This commit is contained in:
1 parent
389d9bc8bf
commit
61b771a418
3 files changed
+97
-88
No files matched your search
@@ -161,6 +161,10 @@ var phases = [...]struct {
|
||||
// TODO: check consts, funcs, structs and uses for name collisions.
|
||||
}
|
||||
|
||||
type reason func(q *checker, n *a.Assert) error
|
||||
|
||||
type reasonMap map[t.Key]reason
|
||||
|
||||
type Checker struct {
|
||||
tm *t.Map
|
||||
reasonMap reasonMap
|
||||
|
||||
Reference in new issue
Block a user