From fe5de82208957dd8c5dad58cc8d5ec464ad62ccb Mon Sep 17 00:00:00 2001 From: Username404 Date: Wed, 21 Jun 2023 16:57:54 +0200 Subject: [PATCH] Parser.hpp: Parse all references instead of properties only Signed-off-by: Username404 --- src/headers/parsing/Parser.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/headers/parsing/Parser.hpp b/src/headers/parsing/Parser.hpp index 03140c0..23e8dfc 100644 --- a/src/headers/parsing/Parser.hpp +++ b/src/headers/parsing/Parser.hpp @@ -119,7 +119,7 @@ namespace Parser { const string name = property or method ? current.toktext + '.' + lexed[i + 2].toktext : current.toktext; if (method or next.toktype == LPAR) { parseTree << Call(name); - } else if (property) { + } else { parseTree << Reference(name); } if (property or method) i += 2;