Mihaela Chirea - SAOC 2020 Milestone 2 Update 2 - Improving DMD as a Library

Jacob Carlborg doob at me.com
Tue Nov 10 09:06:31 UTC 2020


On Monday, 9 November 2020 at 18:32:38 UTC, Mihaela Chirea wrote:

> StaticForeach[1] is not an AST node. It's just an object used 
> to keep the common parts of the StaticForeachDeclaration[2] and 
> StaticForeachStatement[3] nodes.

Ok, I see. All AST nodes should have a location. I recommend 
adding methods to `StaticForeachDeclaration` and 
`StaticForeachStatement` which forwards to the location stored in 
`StaticForeach`.

--
/Jacob Carlborg


More information about the Digitalmars-d mailing list