Rename the variable containing the name of classes in StandardComponents::Class, nest the Constructor structure in it and remove StandardComponents::ClassBody.

This commit is contained in:
Username404 2021-07-31 21:17:57 +02:00
parent 677868a959
commit 34777acc74
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 3 additions and 4 deletions

View File

@ -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 {