public Node getCallingFunction() {
        Node currentNode = this.parent;
        while(currentNode != null) {
            if(currentNode instanceof FunctionDef) {
                return currentNode;
            }
            currentNode = currentNode.parent;
        }
        return null;
    }