X-Git-Url: https://gitweb.ps.run/toc/blobdiff_plain/3715a3f575b615f66e8ea7e57f83849e8bae4deb..17860defa84c6d8bc0e8bc088a7e09361f17db07:/src/repr.h diff --git a/src/repr.h b/src/repr.h index ff54f97..709528d 100644 --- a/src/repr.h +++ b/src/repr.h @@ -39,8 +39,11 @@ struct Stmt; struct Context { + std::optional name; std::shared_ptr parent; std::vector variables; + std::vector functions; + std::vector structs; }; enum class TypeModifierType @@ -110,16 +113,12 @@ struct Namespace { std::string name; std::shared_ptr ctx; - std::vector structs; - std::vector functions; std::vector namespaces; }; struct Program { std::shared_ptr ctx; - std::vector structs; - std::vector functions; std::vector namespaces; };