Stream: general

Topic: NodeId assignment


Keith Yeung (Oct 01 2019 at 22:23, on Zulip):

I just discovered that the compiler doesn't assign NodeIds during parsing -- it instead fills every node with a DUMMY_NODE_ID. When are the IDs properly assigned to the AST nodes?

Keith Yeung (Oct 01 2019 at 23:21, on Zulip):

the comments say something about a "renumbering" pass, but I couldn't find it anywhere in the compiler

Keith Yeung (Oct 01 2019 at 23:21, on Zulip):

maybe it's named something else?

davidtwco (Oct 02 2019 at 07:09, on Zulip):

It happens during macro expansion. If I remember correctly, statements get assigned ids here and everything else here.

davidtwco (Oct 02 2019 at 07:09, on Zulip):

(also consider using #t-compiler/help)

Last update: Nov 20 2019 at 12:15UTC