Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
D8H committed May 17, 2024
1 parent f3de5c6 commit d98f07d
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions Core/GDCore/Events/Parsers/ExpressionParser2Node.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,23 +60,20 @@ struct GD_CORE_API ExpressionParserError {
MissingBehavior,
};

ExpressionParserError(ExpressionParserError::ErrorType type_,
ExpressionParserError(gd::ExpressionParserError::ErrorType type_,
const gd::String &message_,
const ExpressionParserLocation &location_,
const gd::String &actualValue_ = "",
const gd::String &objectName_ = "")
: type(type_), message(message_), location(location_),
actualValue(actualValue_), objectName(objectName_){};
ExpressionParserError(ExpressionParserError::ErrorType type_,
const gd::String &message_,
size_t position_)
ExpressionParserError(gd::ExpressionParserError::ErrorType type_,
const gd::String &message_, size_t position_)
: type(type_), message(message_), location(position_){};
ExpressionParserError(ExpressionParserError::ErrorType type_,
const gd::String &message_,
size_t startPosition_,
ExpressionParserError(gd::ExpressionParserError::ErrorType type_,
const gd::String &message_, size_t startPosition_,
size_t endPosition_)
: type(type_),
message(message_),
: type(type_), message(message_),
location(startPosition_, endPosition_){};
virtual ~ExpressionParserError(){};

Expand All @@ -87,8 +84,8 @@ struct GD_CORE_API ExpressionParserError {
size_t GetStartPosition() { return location.GetStartPosition(); }
size_t GetEndPosition() { return location.GetEndPosition(); }

private:
ExpressionParserError::ErrorType type;
private:
gd::ExpressionParserError::ErrorType type;
gd::String message;
ExpressionParserLocation location;
gd::String objectName;
Expand Down

0 comments on commit d98f07d

Please sign in to comment.