From c5fcf682195b0b191d19a598844f734ebf5b2583 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Mon, 28 Dec 2009 20:55:18 +0000 Subject: 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. --- src/astnode.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/astnode.cpp') 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 @@ #include "astleaf.h" #include "astbranch.h" -AstNode::AstNode( Type eType ) : - eType( eType ) +AstNode::AstNode( const Location &loc, Type eType ) : + eType( eType ), + loc( loc ) { } -- cgit v1.2.3