def add_arguments(self, node, argsdict, args_frozen, args, kwargs):
    if args_frozen:
        msg = "Tried to use '{}' after a build target has been declared.\nThis is not permitted. Please declare all arguments before your targets.".format(node.func_name)
        raise InvalidCode(msg)
    if ('language' not in kwargs):
        raise InvalidCode('Missing language definition in {}'.format(node.func_name))
    self.warn_about_builtin_args(args)
    for lang in mesonlib.stringlistify(kwargs['language']):
        lang = lang.lower()
        argsdict[lang] = (argsdict.get(lang, []) + args)
def add_arguments(self, node, argsdict, args_frozen, args, kwargs):
    if args_frozen:
        msg = "Tried to use '{}' after a build target has been declared.\nThis is not permitted. Please declare all arguments before your targets.".format(node.func_name)
        raise InvalidCode(msg)
    if ('language' not in kwargs):
        raise InvalidCode('Missing language definition in {}'.format(node.func_name))
    self.warn_about_builtin_args(args)
    for lang in mesonlib.stringlistify(kwargs['language']):
        lang = lang.lower()
        argsdict[lang] = (argsdict.get(lang, []) + args)