third_party/blink/renderer/bindings/scripts/web_idl/ir_builder.py
def _create_iterator_operations(self, node):
        """Constructs a set of iterator operations."""
        return {
            Identifier('forEach'):
            self._create_operation(
                Identifier('forEach'),
                arguments=self._create_arguments([
                    (Identifier('callback'),
                     Identifier('ForEachIteratorCallback')),
                    (Identifier('thisArg'), 'any', 'null'),
                ]),
                extended_attributes={
                    'CallWith': ('ScriptState', 'ThisValue'),
                    'RaisesException': None,
                    'ImplementedAs': 'forEachForBinding',
                },
                node=node),
            Identifier('entries'):
            self._create_operation(
                Identifier('entries'),
                return_type=Identifier('Iterator'),
                extended_attributes={
                    'CallWith': 'ScriptState',
                    'RaisesException': None,
                    'ImplementedAs': 'entriesForBinding',
                },
                node=node),
            Identifier('keys'):
            self._create_operation(
                Identifier('keys'),
                return_type=Identifier('Iterator'),
                extended_attributes={
                    'CallWith': 'ScriptState',
                    'RaisesException': None,
                    'ImplementedAs': 'keysForBinding',
                },
                node=node),
            Identifier('values'):
            self._create_operation(
                Identifier('values'),
                return_type=Identifier('Iterator'),
                extended_attributes={
                    'CallWith': 'ScriptState',
                    'RaisesException': None,
                    'ImplementedAs': 'valuesForBinding',
                },
                node=node),
        }
Constructs a set of iterator operations.
Constructs a set of iterator operations.
Constructs a set of iterator operations .
def _create_iterator_operations(self, node):
        return {
            Identifier('forEach'):
            self._create_operation(
                Identifier('forEach'),
                arguments=self._create_arguments([
                    (Identifier('callback'),
                     Identifier('ForEachIteratorCallback')),
                    (Identifier('thisArg'), 'any', 'null'),
                ]),
                extended_attributes={
                    'CallWith': ('ScriptState', 'ThisValue'),
                    'RaisesException': None,
                    'ImplementedAs': 'forEachForBinding',
                },
                node=node),
            Identifier('entries'):
            self._create_operation(
                Identifier('entries'),
                return_type=Identifier('Iterator'),
                extended_attributes={
                    'CallWith': 'ScriptState',
                    'RaisesException': None,
                    'ImplementedAs': 'entriesForBinding',
                },
                node=node),
            Identifier('keys'):
            self._create_operation(
                Identifier('keys'),
                return_type=Identifier('Iterator'),
                extended_attributes={
                    'CallWith': 'ScriptState',
                    'RaisesException': None,
                    'ImplementedAs': 'keysForBinding',
                },
                node=node),
            Identifier('values'):
            self._create_operation(
                Identifier('values'),
                return_type=Identifier('Iterator'),
                extended_attributes={
                    'CallWith': 'ScriptState',
                    'RaisesException': None,
                    'ImplementedAs': 'valuesForBinding',
                },
                node=node),
        }
def _create_iterator_operations ( self , node ) : return { Identifier ( 'forEach' ) : self . _create_operation ( Identifier ( 'forEach' ) , arguments = self . _create_arguments ( [ ( Identifier ( 'callback' ) , Identifier ( 'ForEachIteratorCallback' ) ) , ( Identifier ( 'thisArg' ) , 'any' , 'null' ) , ] ) , extended_attributes = { 'CallWith' : ( 'ScriptState' , 'ThisValue' ) , 'RaisesException' : None , 'ImplementedAs' : 'forEachForBinding' , } , node = node ) , Identifier ( 'entries' ) : self . _create_operation ( Identifier ( 'entries' ) , return_type = Identifier ( 'Iterator' ) , extended_attributes = { 'CallWith' : 'ScriptState' , 'RaisesException' : None , 'ImplementedAs' : 'entriesForBinding' , } , node = node ) , Identifier ( 'keys' ) : self . _create_operation ( Identifier ( 'keys' ) , return_type = Identifier ( 'Iterator' ) , extended_attributes = { 'CallWith' : 'ScriptState' , 'RaisesException' : None , 'ImplementedAs' : 'keysForBinding' , } , node = node ) , Identifier ( 'values' ) : self . _create_operation ( Identifier ( 'values' ) , return_type = Identifier ( 'Iterator' ) , extended_attributes = { 'CallWith' : 'ScriptState' , 'RaisesException' : None , 'ImplementedAs' : 'valuesForBinding' , } , node = node ) , }
Constructs a set of iterator operations.
Constructs a set of iterator operations .
"""Constructs a set of iterator operations."""
self
node