third_party/blink/renderer/bindings/scripts/web_idl/ir_builder.py
def _create_operation(self,
                          identifier,
                          arguments=None,
                          return_type=None,
                          extended_attributes=None,
                          node=None):
        """Constructs a new Operation.IR from simple parameters."""
        if not return_type:
            return_type = self._create_type('void')
        elif isinstance(return_type, str):
            return_type = self._create_type(return_type)
        if isinstance(extended_attributes, dict):
            extended_attributes = self._create_extended_attributes(
                extended_attributes)
        debug_info = self._build_debug_info(node) if node else None

        return Operation.IR(
            identifier,
            arguments=(arguments or []),
            return_type=return_type,
            extended_attributes=extended_attributes,
            component=self._component,
            debug_info=debug_info)
Constructs a new Operation.IR from simple parameters.
Constructs a new Operation.IR from simple parameters.
Constructs a new Operation . IR from simple parameters .
def _create_operation(self,
                          identifier,
                          arguments=None,
                          return_type=None,
                          extended_attributes=None,
                          node=None):
        if not return_type:
            return_type = self._create_type('void')
        elif isinstance(return_type, str):
            return_type = self._create_type(return_type)
        if isinstance(extended_attributes, dict):
            extended_attributes = self._create_extended_attributes(
                extended_attributes)
        debug_info = self._build_debug_info(node) if node else None
        return Operation.IR(
            identifier,
            arguments=(arguments or []),
            return_type=return_type,
            extended_attributes=extended_attributes,
            component=self._component,
            debug_info=debug_info)
def _create_operation ( self , identifier , arguments = None , return_type = None , extended_attributes = None , node = None ) : if not return_type : return_type = self . _create_type ( 'void' ) elif isinstance ( return_type , str ) : return_type = self . _create_type ( return_type ) if isinstance ( extended_attributes , dict ) : extended_attributes = self . _create_extended_attributes ( extended_attributes ) debug_info = self . _build_debug_info ( node ) if node else None return Operation . IR ( identifier , arguments = ( arguments or [ ] ) , return_type = return_type , extended_attributes = extended_attributes , component = self . _component , debug_info = debug_info )
Constructs a new Operation.IR from simple parameters.
Constructs a new Operation . IR from simple parameters .
"""Constructs a new Operation.IR from simple parameters."""
self
identifier
arguments
return_type
extended_attributes
node