third_party/blink/renderer/bindings/scripts/web_idl/ir_builder.py
def _create_arguments(self, args):
        """
        Constructs a list of new instances of Argument.

        Args:
            args: A list of argument parameters.  Each argument parameter is
                a list of argument identifier, type name in str, and optional
                default value in str.
        """
        assert isinstance(args, (list, tuple))

        arguments = []
        index = 0
        for arg in args:
            assert isinstance(arg, (list, tuple))
            assert len(arg) == 2 or len(arg) == 3

            identifier = arg[0]
            if isinstance(arg[1], str):
                idl_type = self._create_type(
                    arg[1], is_optional=(len(arg) == 3))
            else:
                idl_type = arg[1]

            default_value = None
            if len(arg) == 3:
                default_value = self._create_literal_constant(arg[2])

            arguments.append(
                Argument.IR(
                    identifier,
                    index=index,
                    idl_type=idl_type,
                    default_value=default_value))

            index += 1

        return arguments

        Constructs a list of new instances of Argument.

        Args:
            args: A list of argument parameters.  Each argument parameter is
                a list of argument identifier, type name in str, and optional
                default value in str.
        
Constructs a list of new instances of Argument.
Constructs a list of new instances of Argument .
def _create_arguments(self, args):
        assert isinstance(args, (list, tuple))
        arguments = []
        index = 0
        for arg in args:
            assert isinstance(arg, (list, tuple))
            assert len(arg) == 2 or len(arg) == 3
            identifier = arg[0]
            if isinstance(arg[1], str):
                idl_type = self._create_type(
                    arg[1], is_optional=(len(arg) == 3))
            else:
                idl_type = arg[1]
            default_value = None
            if len(arg) == 3:
                default_value = self._create_literal_constant(arg[2])
            arguments.append(
                Argument.IR(
                    identifier,
                    index=index,
                    idl_type=idl_type,
                    default_value=default_value))
            index += 1
        return arguments
def _create_arguments ( self , args ) : assert isinstance ( args , ( list , tuple ) ) arguments = [ ] index = 0 for arg in args : assert isinstance ( arg , ( list , tuple ) ) assert len ( arg ) == 2 or len ( arg ) == 3 identifier = arg [ 0 ] if isinstance ( arg [ 1 ] , str ) : idl_type = self . _create_type ( arg [ 1 ] , is_optional = ( len ( arg ) == 3 ) ) else : idl_type = arg [ 1 ] default_value = None if len ( arg ) == 3 : default_value = self . _create_literal_constant ( arg [ 2 ] ) arguments . append ( Argument . IR ( identifier , index = index , idl_type = idl_type , default_value = default_value ) ) index += 1 return arguments
Constructs a list of new instances of Argument.
Constructs a list of new instances of Argument .
"""
        Constructs a list of new instances of Argument.

        Args:
            args: A list of argument parameters.  Each argument parameter is
                a list of argument identifier, type name in str, and optional
                default value in str.
        """
self
args
A list of argument parameters.  Each argument parameter is
a list of argument identifier, type name in str, and optional
default value in str.
A list of argument parameters . Each argument parameter is a list of argument identifier type name in str and optional default value in str .