Website Summary Files Commits Branches @commit @diff @stats
path: root / JSImpl / src / Expression.h
diff options
context:
space:
mode:
Commit156d0957c1b36bba2685fef548a8573e9337309a (patch)
Author
 omalinov <ognyan.m@coherent-labs.com>
2018-11-18 23:01:20 +0200
Committer
 GitHub <noreply@github.com>
2018-11-18 23:01:20 +0200
Files3a882d71f65d8b5c129e348985c2c1a4fe70a031 /JSImpl/src/Expression.h
IPL-156d0957c1b36bba2685fef548a8573e9337309a.tar
IPL-156d0957c1b36bba2685fef548a8573e9337309a.tar.gz
IPL-156d0957c1b36bba2685fef548a8573e9337309a.zip
Parenta5ebf986574bdcdad968962751d9ab8dbe90980d (diff)
Parent12232668d931b0f3593807d2096a2c2f26844b0b (diff)
Merge branch 'master' into json-to-ast
1 files changed, 7 insertions, 0 deletions
-rw-r--r--JSImpl/src/Expression.h7
diff --git a/JSImpl/src/Expression.h b/JSImpl/src/Expression.h
index 4d45cc3..3fa7b90 100644
--- a/JSImpl/src/Expression.h
+++ b/JSImpl/src/Expression.h
@@ -8,8 +8,15 @@
class Expression : public IPLEnableShared<Expression>
{
public:
+ Expression() : m_Line((unsigned)-1), m_Column((unsigned)-1) {}
virtual ~Expression() {}
virtual void Accept(ExpressionVisitor& v) = 0;
+ unsigned GetLine() { return m_Line; };
+ unsigned GetColumn() { return m_Column; };
+ void SetLocation(unsigned l, unsigned c) { m_Line = l; m_Column = c; };
+ private:
+ unsigned m_Line = 0;
+ unsigned m_Column = 0;
};
#define EXPAND_ARGUMENT(type, name, def)\