def METHOD_NAME(self, pos):
    if self._codegen is not None and self._codegen.map_pos_to_node is not None:
        n = self._codegen.map_pos_to_node.get_node(pos)
        if n is None:
            n = self._codegen.map_pos_to_node.get_node(pos - 1)
        return n
    return None