Actually call ParseTypeDef.
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Deukhoofd 2021-01-01 23:44:58 +01:00
parent 329848d9d5
commit a9c4dfdece
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
1 changed files with 3 additions and 2 deletions

View File

@ -44,8 +44,9 @@ namespace MalachScript::Parser {
break;
}
ScopedPtr<const ParsedStatement> statement;
auto result = ParseClass(statement, currentToken, log) || ParseFunc(statement, currentToken, log) ||
ParseNamespace(statement, currentToken, log);
// TODO: Sort by performance
auto result = ParseTypeDef(statement, currentToken, log) || ParseClass(statement, currentToken, log) ||
ParseFunc(statement, currentToken, log) || ParseNamespace(statement, currentToken, log);
if (!result) {
// TODO: Log error
PROGRESS_TOKEN(currentToken);