Create the functionality for hosting metadata about various structures in the compiler. We want to be able to get a variant of Metadata for each type of object that needs to host metadata.
Issue Type
[X] Feature
[ ] Bugfix
[ ] Documentation
[ ] Refactoring
[ ] Other:
Requirements
Create an enum Metadata that hosts variants for different types of metadata
Create variants for Token, Module, and Directory
Notes
You do not actually have to implement the metadata structure in the listed objects. Just create the infrastructure for it. See related metadata issues for what kind of information to host, and also look at existing C compilers for ideas of other things we may want to host.
Details
Create the functionality for hosting metadata about various structures in the compiler. We want to be able to get a variant of
Metadata
for each type of object that needs to host metadata.Issue Type
Requirements
Metadata
that hosts variants for different types of metadataToken
,Module
, andDirectory
Notes
You do not actually have to implement the metadata structure in the listed objects. Just create the infrastructure for it. See related metadata issues for what kind of information to host, and also look at existing C compilers for ideas of other things we may want to host.