summaryrefslogtreecommitdiff
path: root/src/mem/slicc/ast/AST.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/mem/slicc/ast/AST.py')
-rw-r--r--src/mem/slicc/ast/AST.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mem/slicc/ast/AST.py b/src/mem/slicc/ast/AST.py
index 8f0d06171..d098c8642 100644
--- a/src/mem/slicc/ast/AST.py
+++ b/src/mem/slicc/ast/AST.py
@@ -30,7 +30,7 @@ from slicc.util import PairContainer, Location
class AST(PairContainer):
def __init__(self, slicc, pairs=None):
self.slicc = slicc
- self.location = Location(slicc.current_file, slicc.lexer.lineno)
+ self.location = Location(slicc.current_source, slicc.current_line)
self.pairs = {}
if pairs:
self.pairs.update(getattr(pairs, "pairs", pairs))