Create a DeclProtocol
protocol for generically operating on declarations
#10
Labels
DeclProtocol
protocol for generically operating on declarations
#10
At the moment there is nothing shared between the toolkit's declaration wrappers;
StructDecl
,EnumDecl
,VariableDecl
, and maybe others by the time someone gets to this issue. A protocol would enable much more powerful generic programming to enable developers to create more flexible macros. Here's a rough idea of what such a protocol might look like (pretty simple for now);Once you've created the protocol, make sure to update existing declaration wrappers (including
Decl
) to conform to the protocol. Additionally, ifDeclGroupProtocol
exists by the time that someone is tackling this issue, it should be updated to inherit fromDeclProtocol
as well.The text was updated successfully, but these errors were encountered: