Style fixes.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Deukhoofd 2020-11-01 13:50:35 +01:00
parent c4d7c9e2d8
commit e30bfe1686
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
7 changed files with 10 additions and 11 deletions

View File

@ -1,6 +1,5 @@
#include <cstdint>
#include "NumericalLexers.hpp"
#include <cstdint>
uint8_t LexDecimalValue(char8_t c) {
switch (c) {

View File

@ -496,8 +496,7 @@ namespace MalachScript::Parser {
}
if (current->GetKind() != LexTokenKind::CloseCurlyParenthesisSymbol) {
LogError(Diagnostics::DiagnosticType::UnexpectedToken, current->GetSpan());
}
else{
} else {
PROGRESS_TOKEN(current);
}

View File

@ -38,7 +38,8 @@ PARSE_TEST("Parse class with virtprop", "class foobar { private bool foo { get;
REQUIRE(script->GetStatements().size() == 1);
auto firstStatement = script->GetStatements()[0].get();
REQUIRE(firstStatement->GetKind() == Parser::ParsedStatementKind::Class);
auto firstClassStatement = dynamic_cast<const MalachScript::Parser::ParsedClassStatement*>(firstStatement)->GetBody()[0].get();
auto firstClassStatement =
dynamic_cast<const MalachScript::Parser::ParsedClassStatement*>(firstStatement)->GetBody()[0].get();
REQUIRE(firstClassStatement->GetKind() == Parser::ParsedStatementKind::VirtProp);
auto virtPropStatement = dynamic_cast<const MalachScript::Parser::ParsedVirtPropStatement*>(firstClassStatement);
REQUIRE(virtPropStatement->GetAccess() == MalachScript::AccessModifier::Private);