Example #1
0
 def filter(self, ast):
     """ Filter definition
         
     @return first node matching with the filter
     """
     # Build a visitor , matching the OmpFor node of the AST
     f = OmpParallelForFilter()
     node = f.apply(ast)
     self._func_def = f.get_func_def()
     self._parallel = f.get_parallel()
     return node