tamer: nir::air::NirToAir: Note about intent to refactor

The comment speaks for itself.

My concern is that this will be especially off-putting to people looking at
TAMER and wondering how one could possibly work with this system.

DEV-13162
main
Mike Gerwitz 2023-05-10 11:28:19 -04:00
parent 4510de38ed
commit 7a6aef00b2
1 changed files with 4 additions and 0 deletions

View File

@ -113,6 +113,10 @@ impl ParseState for NirToAir {
return Transition(Ready).ok(obj).with_lookahead(tok);
}
// TODO: The intent is to refactor this monstrosity once we're far
// enough along that a clear pattern emerges.
// Part of this process has been deriving appropriate
// responsibilities betwen XIR->NIR, NIR->AIR, and AIR->ASG.
match (self, tok) {
(Ready, Open(Package, span)) => {
Transition(Ready).ok(Air::PkgStart(span))