Rename Value to LiteralValue in CST.hpp
This commit is contained in:
parent
bf77031dd5
commit
6234a49feb
2 changed files with 6 additions and 6 deletions
|
@ -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;
|
||||
|
|
|
@ -953,11 +953,11 @@ namespace bolt {
|
|||
return Text;
|
||||
}
|
||||
|
||||
Value StringLiteral::getValue() {
|
||||
LiteralValue StringLiteral::getValue() {
|
||||
return Text;
|
||||
}
|
||||
|
||||
Value IntegerLiteral::getValue() {
|
||||
LiteralValue IntegerLiteral::getValue() {
|
||||
return V;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue