Refactor the bounds checker's list of reasons.

This commit is contained in:
Nigel Tao committed 2017-07-22 10:24:48 +10:00
1 parent 389d9bc8bf
commit 61b771a418
3 files changed
+97 -88

No files matched your search

+4
View File
@@ -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