

def add_method(self, scanner, token):
    method_definition = token
    method_signature = self._get_method_signature(method_definition)
    method_name = self._get_method_name(method_signature)
    method_body = self._get_method_body(method_definition)
    sha1 = self._get_sha1(method_definition)
    method = Method(method_definition, method_signature, method_body, sha1)
    self.methods[method_name] = method

dataset/ETHPy150Open espeed/bulbs/bulbs/groovy.py Parser.add_method/original