diff options
| Commit | 202194341e3697d77077aa50652acf1042350997 (patch) | |
|---|---|---|
| Author | 2018-10-15 09:00:16 +0300 | |
| Committer | 2018-10-15 09:00:16 +0300 | |
| Files | d530d0243407e86be9e9116e3853bf7992757ebd /JSImpl/src/Expression.cpp | |
| IPL-202194341e3697d77077aa50652acf1042350997.tar IPL-202194341e3697d77077aa50652acf1042350997.tar.gz IPL-202194341e3697d77077aa50652acf1042350997.zip | ||
| Parent | 6c7fc844cebe201408017602ff54bf442df0da25 (diff) | |
| Parent | f671c0492871418a7b6fed235196b85f79236cff (diff) | |
Merge branch 'master' into lexer-errors-handling
1 files changed, 0 insertions, 29 deletions
| -rw-r--r-- | JSImpl/src/Expression.cpp | 29 |
diff --git a/JSImpl/src/Expression.cpp b/JSImpl/src/Expression.cpp index b8044e1..7153b3f 100644 --- a/JSImpl/src/Expression.cpp +++ b/JSImpl/src/Expression.cpp @@ -1,33 +1,4 @@ #include "Expression.h" #include <assert.h> -LiteralExpression::LiteralExpression(double v) - :m_Type(LiteralType::Number) - , m_NumValue(v) -{} -LiteralExpression::LiteralExpression(IPLString& v) - : m_Type(LiteralType::String) - , m_StringValue(v) -{} - -LiteralExpression::LiteralExpression(bool v) - : m_Type(LiteralType::Boolean) - , m_BooleanValue(v) -{} - -LiteralExpression::LiteralExpression(TokenType type) -{ - if (type == TokenType::Null) - { - m_Type = LiteralType::Null; - } - else if (type == TokenType::Undefined) - { - m_Type = LiteralType::Undefined; - } - else - { - assert(false); - } -} |
