def call_add_transforms()

in fluent/migrate/validator.py [0:0]


    def call_add_transforms(self, node):
        args_msg = (
            "Expected arguments to {}.add_transforms: "
            "target_ftl_path, reference_ftl_path, list_of_transforms"
        ).format(self.ctx_var)
        ref_msg = (
            "Expected second argument to {}.add_transforms: "
            "reference should be string or variable with string value"
        ).format(self.ctx_var)
        # Just check call signature here, check actual types below
        if not self.check_arguments(node, (ast.AST, ast.AST, ast.AST)):
            self.issues.append(
                {
                    "msg": args_msg,
                    "line": node.lineno,
                }
            )
            return
        in_reference = node.args[1]
        if isinstance(in_reference, ast.Name):
            in_reference = self.global_assigns.get(in_reference.id)
        if isinstance(in_reference, ast.Constant):
            in_reference = in_reference.value
        if not isinstance(in_reference, str):
            self.issues.append(
                {
                    "msg": ref_msg,
                    "line": node.args[1].lineno,
                }
            )
            return
        self.references.add(in_reference)
        # Checked node.args[1].
        # There's not a lot we can say about our target path,
        # ignoring that.
        # For our transforms, we want more checks.
        self.generic_visit(node.args[2])