third_party/blink/renderer/bindings/scripts/web_idl/ir_builder.py
def _create_attribute(self,
                          identifier,
                          idl_type,
                          is_readonly=False,
                          extended_attributes=None,
                          node=None):
        """Constructs a new Attribute.IR from simple parameters."""
        if isinstance(idl_type, str):
            idl_type = self._create_type(idl_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 Attribute.IR(
            identifier,
            idl_type=idl_type,
            is_readonly=is_readonly,
            extended_attributes=extended_attributes,
            component=self._component,
            debug_info=debug_info)
Constructs a new Attribute.IR from simple parameters.
Constructs a new Attribute.IR from simple parameters.
Constructs a new Attribute . IR from simple parameters .
def _create_attribute(self,
                          identifier,
                          idl_type,
                          is_readonly=False,
                          extended_attributes=None,
                          node=None):
        if isinstance(idl_type, str):
            idl_type = self._create_type(idl_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 Attribute.IR(
            identifier,
            idl_type=idl_type,
            is_readonly=is_readonly,
            extended_attributes=extended_attributes,
            component=self._component,
            debug_info=debug_info)
def _create_attribute ( self , identifier , idl_type , is_readonly = False , extended_attributes = None , node = None ) : if isinstance ( idl_type , str ) : idl_type = self . _create_type ( idl_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 Attribute . IR ( identifier , idl_type = idl_type , is_readonly = is_readonly , extended_attributes = extended_attributes , component = self . _component , debug_info = debug_info )
Constructs a new Attribute.IR from simple parameters.
Constructs a new Attribute . IR from simple parameters .
"""Constructs a new Attribute.IR from simple parameters."""
self
identifier
idl_type
is_readonly
extended_attributes
node