[Parse] Add an attribute for typeEraser.

This will be used for compiler-driven type erasure for dynamic
replacement of functions with an opaque return type. For now, just
parse the attribute and ignore it.
This commit is contained in:
Holly Borla
2020-02-11 16:18:24 -08:00
parent ff9d3ef073
commit ffba71b889
10 changed files with 86 additions and 0 deletions

View File

@@ -1823,6 +1823,12 @@ namespace decls_block {
BCArray<IdentifierIDField>
>;
using TypeEraserDeclAttrLayout = BCRecordLayout<
TypeEraser_DECL_ATTR,
BCFixed<1>, // implicit flag
TypeIDField // type eraser type
>;
using CustomDeclAttrLayout = BCRecordLayout<
Custom_DECL_ATTR,
BCFixed<1>, // implicit flag