bodand / cg3

Other
0 stars 0 forks source link

Better chk3 library -- pull up common check_ast implementation #7

Closed bodand closed 1 year ago

bodand commented 1 year ago

The check interface from the chk3 library is quite inefficient at its job.

Most classes in the checks, for example, implement check_ast in the exact same way; without checking only fleak has actual logic in the function there, because I cannot figure out a way to implement fleak in one pass.

Other than that, all classes do the exact same thing:

This could easily be implemented in one place instead.