Website Summary Files Commits Branches @commit @diff @stats
path: root / JSImpl / src / Expression.cpp
diff options
context:
space:
mode:
1 files changed, 0 insertions, 29 deletions
-rw-r--r--JSImpl/src/Expression.cpp29
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);
- }
-}