Implemented generic for loops
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2019-06-26 16:19:34 +02:00
parent cfd558b718
commit d86e9ba8ae
18 changed files with 325 additions and 44 deletions

View File

@@ -26,7 +26,8 @@ namespace Porygon::Diagnostics {
InvalidTypeName,
UserDataFieldNoGetter,
UserDataFieldNoSetter,
NumericalForArgumentNotANumber
NumericalForArgumentNotANumber,
CantIterateExpression
};
}
#endif //PORYGONLANG_DIAGNOSTICCODE_HPP

View File

@@ -69,6 +69,7 @@ std::string SeverityToString(DiagnosticSeverity s){
case DiagnosticSeverity::Info: return "Info";
case DiagnosticSeverity::Warning: return "Warning";
case DiagnosticSeverity::Error: return "Error";
default: throw;
}
}