Renamed method to »logWarning.«
This commit is contained in:
@@ -94,7 +94,7 @@ void Domain::findSections()
|
||||
|
||||
const auto sectionIdentifier = parser.parseIdentifier(isIdentifier);
|
||||
|
||||
m_context.logger.parserWarning(parser, "Section type “" + sectionIdentifier + "” currently unsupported");
|
||||
m_context.logger.logWarning(parser, "Section type “" + sectionIdentifier + "” currently unsupported");
|
||||
|
||||
parser.seek(sectionIdentifierPosition);
|
||||
}
|
||||
|
@@ -89,7 +89,7 @@ void Problem::findSections()
|
||||
|
||||
const auto sectionIdentifier = parser.parseIdentifier(isIdentifier);
|
||||
|
||||
m_context.logger.parserWarning(parser, "Section type “" + sectionIdentifier + "” currently unsupported");
|
||||
m_context.logger.logWarning(parser, "Section type “" + sectionIdentifier + "” currently unsupported");
|
||||
|
||||
parser.seek(sectionIdentifierPosition);
|
||||
}
|
||||
|
@@ -94,7 +94,7 @@ Requirement Requirement::parse(Context &context)
|
||||
const auto requirementType = match->second;
|
||||
|
||||
if (requirementType == Requirement::Type::GoalUtilities)
|
||||
context.logger.parserWarning(context.parser, "Requirement “goal-utilities” is not part of the PDDL 3.1 specification");
|
||||
context.logger.logWarning(context.parser, "Requirement “goal-utilities” is not part of the PDDL 3.1 specification");
|
||||
|
||||
return Requirement(match->second);
|
||||
}
|
||||
|
@@ -122,7 +122,7 @@ PrimitiveType *PrimitiveType::parseAndFind(Context &context, Domain &domain)
|
||||
// Only "object" is allowed as an implicit type
|
||||
if (typeName == "object" || typeName == "objects")
|
||||
{
|
||||
context.logger.parserWarning(context.parser, "Primitive type “" + typeName + "” should be declared");
|
||||
context.logger.logWarning(context.parser, "Primitive type “" + typeName + "” should be declared");
|
||||
types.emplace_back(std::make_unique<expressions::PrimitiveType>(typeName));
|
||||
}
|
||||
else
|
||||
|
@@ -26,7 +26,7 @@ UnsupportedPointer Unsupported::parse(Context &context)
|
||||
|
||||
expression->m_type = parser.parseIdentifier(isIdentifier);
|
||||
|
||||
context.logger.parserWarning(context.parser, "Expression type “" + expression->m_type + "” currently unsupported in this context");
|
||||
context.logger.logWarning(context.parser, "Expression type “" + expression->m_type + "” currently unsupported in this context");
|
||||
|
||||
skipSection(parser);
|
||||
|
||||
|
@@ -111,7 +111,7 @@ void Logger::logError(const Parser::Coordinate &coordinate, const std::string &m
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
void Logger::parserWarning(const Parser &parser, const std::string &message)
|
||||
void Logger::logWarning(const Parser &parser, const std::string &message)
|
||||
{
|
||||
if (m_warningLevel == WarningLevel::Ignore)
|
||||
return;
|
||||
|
Reference in New Issue
Block a user