void set_decl(const str &name, Decl *decl)
Register a type declaration.
vector< Decl * > get_decls() const
Get all type declarations in the context.
Decl * get_decl(const str &name) const
Search for a declaration by name.
void set_function_decl(FunctionDecl *func)
Register a function declaration.
vector< FunctionDecl * > get_func_decls() const
Get all functions registered in the context.
FunctionDecl * get_func_decl(const str &name) const
Search for a function declaration by name.