diff options
author | Mike Buland <eichlan@xagasoft.com> | 2009-12-28 20:55:18 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2009-12-28 20:55:18 +0000 |
commit | c5fcf682195b0b191d19a598844f734ebf5b2583 (patch) | |
tree | 9fb24ddc20aaee06ee4990e84725b33a3e213207 /src/astnode.cpp | |
parent | e27c94b51a2e315ed5f529ba0c8c0d1bf354143c (diff) | |
download | build-c5fcf682195b0b191d19a598844f734ebf5b2583.tar.gz build-c5fcf682195b0b191d19a598844f734ebf5b2583.tar.bz2 build-c5fcf682195b0b191d19a598844f734ebf5b2583.tar.xz build-c5fcf682195b0b191d19a598844f734ebf5b2583.zip |
Location data is being tracked (for the most part, filenames...not as much),
but it isn't being used in errors yet, I should add some new exceptions for now.
Diffstat (limited to '')
-rw-r--r-- | src/astnode.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/astnode.cpp b/src/astnode.cpp index 5adb3ee..87b9383 100644 --- a/src/astnode.cpp +++ b/src/astnode.cpp | |||
@@ -2,8 +2,9 @@ | |||
2 | #include "astleaf.h" | 2 | #include "astleaf.h" |
3 | #include "astbranch.h" | 3 | #include "astbranch.h" |
4 | 4 | ||
5 | AstNode::AstNode( Type eType ) : | 5 | AstNode::AstNode( const Location &loc, Type eType ) : |
6 | eType( eType ) | 6 | eType( eType ), |
7 | loc( loc ) | ||
7 | { | 8 | { |
8 | } | 9 | } |
9 | 10 | ||