Rename Value to LiteralValue in CST.hpp

This commit is contained in:
Sam Vervaeck 2023-06-02 20:58:03 +02:00
parent bf77031dd5
commit 6234a49feb
Signed by: samvv
SSH key fingerprint: SHA256:dIg0ywU1OP+ZYifrYxy8c5esO72cIKB+4/9wkZj1VaY
2 changed files with 6 additions and 6 deletions

View file

@ -900,7 +900,7 @@ namespace bolt {
};
using Value = std::variant<ByteString, Integer>;
using LiteralValue = std::variant<ByteString, Integer>;
class Literal : public Token {
public:
@ -908,7 +908,7 @@ namespace bolt {
inline Literal(NodeKind Kind, TextLoc StartLoc):
Token(Kind, StartLoc) {}
virtual Value getValue() = 0;
virtual LiteralValue getValue() = 0;
static bool classof(const Node* N) {
return N->getKind() == NodeKind::StringLiteral
@ -927,7 +927,7 @@ namespace bolt {
std::string getText() const override;
Value getValue() override;
LiteralValue getValue() override;
static bool classof(const Node* N) {
return N->getKind() == NodeKind::StringLiteral;
@ -949,7 +949,7 @@ namespace bolt {
return V;
}
Value getValue() override;
LiteralValue getValue() override;
static bool classof(const Node* N) {
return N->getKind() == NodeKind::IntegerLiteral;

View file

@ -953,11 +953,11 @@ namespace bolt {
return Text;
}
Value StringLiteral::getValue() {
LiteralValue StringLiteral::getValue() {
return Text;
}
Value IntegerLiteral::getValue() {
LiteralValue IntegerLiteral::getValue() {
return V;
}