Added comments attribute

This commit is contained in:
WerWolv
2021-01-21 20:55:10 +01:00
parent 9a97c6c328
commit b6e2bbc434
5 changed files with 47 additions and 13 deletions

View File

@@ -541,12 +541,13 @@ namespace hex::lang {
return this->m_attribute;
}
[[nodiscard]] std::string_view getValue() const {
[[nodiscard]] const std::optional<std::string>& getValue() const {
return this->m_value;
}
private:
std::string m_attribute, m_value;
std::string m_attribute;
std::optional<std::string> m_value;
};
}