(self, method, func)
Visit a method, calling a function on every child.

    Args:
      method: (Method) The Method to visit.
      func: (function) Method to call on each object.
Visit a method, calling a function on every child.
Visit a method calling a function on every child .
def _VisitMethod(self, method, func):
    """Visit a method, calling a function on every child.

    Args:
      method: (Method) The Method to visit.
      func: (function) Method to call on each object.
    """
    func(method)
    for parameter in method.parameters:
      func(parameter)
def _VisitMethod ( self , method , func ) : func ( method ) for parameter in method . parameters : func ( parameter )