def handle_if(self, span, cond):
'''Should be called to signalize an if directive.
Args:
span (tuple of int): Start and end line of the directive.
param (str): String representation of the branching condition.
'''
self._path.append(self._curnode)
self._curnode = []
self._open_blocks.append(('if', self._curfile, [span], [cond], []))
评论列表
文章目录