patterns: Fixed multiple parse and evaluate issues

This commit is contained in:
WerWolv
2021-06-22 16:04:47 +02:00
parent fde5b39495
commit 1e1cdb0ef0
3 changed files with 9 additions and 3 deletions

View File

@@ -569,7 +569,7 @@ namespace hex::lang {
class ASTNodeAttribute : public ASTNode {
public:
explicit ASTNodeAttribute(std::string_view attribute, std::string_view value = { })
explicit ASTNodeAttribute(std::string_view attribute, std::optional<std::string_view> value = { })
: ASTNode(), m_attribute(attribute), m_value(value) { }
~ASTNodeAttribute() override = default;