From 635f1477e1d0c17738babbb30e29b1ce0e6b3917 Mon Sep 17 00:00:00 2001 From: Nathanne Isip Date: Tue, 10 Sep 2024 09:02:01 +0800 Subject: [PATCH] Passing token address from throw statement for exception tracking. --- src/ast/TerminativeSignal.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ast/TerminativeSignal.cpp b/src/ast/TerminativeSignal.cpp index c66d810..a90f97f 100644 --- a/src/ast/TerminativeSignal.cpp +++ b/src/ast/TerminativeSignal.cpp @@ -25,3 +25,7 @@ DynamicObject TerminativeReturnSignal::getObject() const { DynamicObject TerminativeThrowSignal::getObject() const { return this->value; } + +Token* TerminativeThrowSignal::getAddress() const { + return this->address.get(); +}