From 34777acc74f971c61b8ea0f4fef0259db57cfe9a Mon Sep 17 00:00:00 2001 From: Username404 Date: Sat, 31 Jul 2021 21:17:57 +0200 Subject: [PATCH] Rename the variable containing the name of classes in StandardComponents::Class, nest the Constructor structure in it and remove StandardComponents::ClassBody. --- src/headers/parsing/ParseComponents.hpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/headers/parsing/ParseComponents.hpp b/src/headers/parsing/ParseComponents.hpp index a40aad0..6ee3e41 100644 --- a/src/headers/parsing/ParseComponents.hpp +++ b/src/headers/parsing/ParseComponents.hpp @@ -36,12 +36,11 @@ namespace StandardComponents { // Shorthand for Define(false) Define(): Define(false) {} }; - struct Constructor: ParseComponent {}; - struct ClassBody: ParseComponent {}; struct Class: ParseComponent { - string bullshitText; + struct Constructor {}; + string name; Constructor constructor; - explicit Class(string_view text): bullshitText(text) {} + explicit Class(string_view text): name(text) {} }; namespace types { struct String: ParseComponent {