From 17860defa84c6d8bc0e8bc088a7e09361f17db07 Mon Sep 17 00:00:00 2001 From: Patrick Schönberger Date: Wed, 11 Aug 2021 18:02:56 +0200 Subject: structs and functions in ctx --- src/repr.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to '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; }; -- cgit v1.2.3