def validate_function_names()

in azure/functions/decorators/function_app.py [0:0]


    def validate_function_names(self, functions: List[Function]):
        """The functions_bindings dict contains the function name and
        its bindings for all functions in an app. If a previous function
        has the same name, indexing will fail here.
        """
        if not self.functions_bindings:
            self.functions_bindings = {}
        for function in functions:
            function_name = function.get_function_name()
            if function_name in self.functions_bindings:
                raise ValueError(
                    f"Function {function_name} does not have a unique"
                    f" function name. Please change @app.function_name() or"
                    f" the function method name to be unique.")
            # The value of the key doesn't matter. We're using a dict for
            # faster lookup times.
            self.functions_bindings[function_name] = True