third_party/blink/renderer/bindings/scripts/web_idl/function_like.py
def distinguishing_argument_index(items_of_effective_overload_set):
        """
        Returns the distinguishing argument index.
        https://webidl.spec.whatwg.org/#dfn-distinguishing-argument-index
        """
        items = items_of_effective_overload_set
        assert isinstance(items, (list, tuple))
        assert all(
            isinstance(item, OverloadGroup.EffectiveOverloadItem)
            for item in items)
        assert len(items) > 1

        for index in range(len(items[0].type_list)):
            # Assume that the given items are valid, and we only need to test
            # the two types.
            if OverloadGroup.are_distinguishable_types(
                    items[0].type_list[index], items[1].type_list[index]):
                return index
        assert False

        Returns the distinguishing argument index.
        https://webidl.spec.whatwg.org/#dfn-distinguishing-argument-index
        
Returns the distinguishing argument index.
Returns the distinguishing argument index .
def distinguishing_argument_index(items_of_effective_overload_set):
        items = items_of_effective_overload_set
        assert isinstance(items, (list, tuple))
        assert all(
            isinstance(item, OverloadGroup.EffectiveOverloadItem)
            for item in items)
        assert len(items) > 1
        for index in range(len(items[0].type_list)):
            if OverloadGroup.are_distinguishable_types(
                    items[0].type_list[index], items[1].type_list[index]):
                return index
        assert False
def distinguishing_argument_index ( items_of_effective_overload_set ) : items = items_of_effective_overload_set assert isinstance ( items , ( list , tuple ) ) assert all ( isinstance ( item , OverloadGroup . EffectiveOverloadItem ) for item in items ) assert len ( items ) > 1 for index in range ( len ( items [ 0 ] . type_list ) ) : if OverloadGroup . are_distinguishable_types ( items [ 0 ] . type_list [ index ] , items [ 1 ] . type_list [ index ] ) : return index assert False
Returns the distinguishing argument index.
Returns the distinguishing argument index .
"""
        Returns the distinguishing argument index.
        https://webidl.spec.whatwg.org/#dfn-distinguishing-argument-index
        """ # Assume that the given items are valid, and we only need to test # the two types.
items_of_effective_overload_set