Parser.hpp: Parse all references instead of properties only

Signed-off-by: Username404 <w.iron.zombie@gmail.com>
This commit is contained in:
Username404 2023-06-21 16:57:54 +02:00
parent ade66e8343
commit fe5de82208
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ namespace Parser {
const string name = property or method ? current.toktext + '.' + lexed[i + 2].toktext : current.toktext; const string name = property or method ? current.toktext + '.' + lexed[i + 2].toktext : current.toktext;
if (method or next.toktype == LPAR) { if (method or next.toktype == LPAR) {
parseTree << Call(name); parseTree << Call(name);
} else if (property) { } else {
parseTree << Reference(name); parseTree << Reference(name);
} }
if (property or method) i += 2; if (property or method) i += 2;