tools/binary_size/libsupersize/bcanalyzer.py
def Feed(self, line, tag, attrib_pos):
    """Parses a single-line tag and store integer and integer array types.

    Args:
      line: Stripped line of single-line tag with op0=# op1=# ... data.
      tag: The tag type in |line| (child tag of <TYPE_BLOCK_ID>).
      attrib_pos: Position in |line| where attribute list starts.
    """
    if tag in _NON_TYPE_TAGS:
      return
    if tag == 'INTEGER':
      num_bits = next(_ParseOpItems(line, attrib_pos))  # op0.
      self.int_types[self.cur_type_id] = num_bits
    elif tag == 'ARRAY':
      [size, item_type_id] = list(_ParseOpItems(line, attrib_pos))  # op0, op1.
      bits = self.int_types.get(item_type_id)
      if bits is not None:  # |bits| can be None for non-int arrays.
        self.int_array_types[self.cur_type_id] = _BcIntArrayType(
            size, bits // 8)
    self.cur_type_id += 1
Parses a single-line tag and store integer and integer array types.

    Args:
      line: Stripped line of single-line tag with op0=# op1=# ... data.
      tag: The tag type in |line| (child tag of <TYPE_BLOCK_ID>).
      attrib_pos: Position in |line| where attribute list starts.
    
Parses a single-line tag and store integer and integer array types.
Parses a single - line tag and store integer and integer array types .
def Feed(self, line, tag, attrib_pos):
    if tag in _NON_TYPE_TAGS:
      return
    if tag == 'INTEGER':
      num_bits = next(_ParseOpItems(line, attrib_pos))  
      self.int_types[self.cur_type_id] = num_bits
    elif tag == 'ARRAY':
      [size, item_type_id] = list(_ParseOpItems(line, attrib_pos))  
      bits = self.int_types.get(item_type_id)
      if bits is not None:  
        self.int_array_types[self.cur_type_id] = _BcIntArrayType(
            size, bits // 8)
    self.cur_type_id += 1
def Feed ( self , line , tag , attrib_pos ) : if tag in _NON_TYPE_TAGS : return if tag == 'INTEGER' : num_bits = next ( _ParseOpItems ( line , attrib_pos ) ) self . int_types [ self . cur_type_id ] = num_bits elif tag == 'ARRAY' : [ size , item_type_id ] = list ( _ParseOpItems ( line , attrib_pos ) ) bits = self . int_types . get ( item_type_id ) if bits is not None : self . int_array_types [ self . cur_type_id ] = _BcIntArrayType ( size , bits // 8 ) self . cur_type_id += 1
Parses a single-line tag and store integer and integer array types.
Parses a single - line tag and store integer and integer array types .
"""Parses a single-line tag and store integer and integer array types.

    Args:
      line: Stripped line of single-line tag with op0=# op1=# ... data.
      tag: The tag type in |line| (child tag of <TYPE_BLOCK_ID>).
      attrib_pos: Position in |line| where attribute list starts.
    """ # op0. # op0, op1. # |bits| can be None for non-int arrays.
self
line
Stripped line of single-line tag with op0=# op1=# ... data.
Stripped line of single - line tag with op0 = # op1 = # ... data .
tag
The tag type in |line| (child tag of ).
The tag type in |line| ( child tag of ) .
attrib_pos
Position in |line| where attribute list starts.
Position in |line| where attribute list starts .