tools/binary_size/libsupersize/file_format.py
def _ExpandSparseSymbols(sparse_symbols):
  """Expands a symbol list with all aliases of all symbols in the list.

  Args:
    sparse_symbols: A list or SymbolGroup to expand.
  """
  representative_symbols = set()
  raw_symbols = []
  logging.debug('Expanding sparse_symbols with aliases of included symbols')
  for sym in sparse_symbols:
    if sym.aliases:
      num_syms = len(representative_symbols)
      representative_symbols.add(sym.aliases[0])
      if num_syms < len(representative_symbols):
        raw_symbols.extend(sym.aliases)
    else:
      raw_symbols.append(sym)
  logging.debug('Done expanding sparse_symbols')
  return models.SymbolGroup(raw_symbols)
Expands a symbol list with all aliases of all symbols in the list.

  Args:
    sparse_symbols: A list or SymbolGroup to expand.
  
Expands a symbol list with all aliases of all symbols in the list.
Expands a symbol list with all aliases of all symbols in the list .
def _ExpandSparseSymbols(sparse_symbols):
  representative_symbols = set()
  raw_symbols = []
  logging.debug('Expanding sparse_symbols with aliases of included symbols')
  for sym in sparse_symbols:
    if sym.aliases:
      num_syms = len(representative_symbols)
      representative_symbols.add(sym.aliases[0])
      if num_syms < len(representative_symbols):
        raw_symbols.extend(sym.aliases)
    else:
      raw_symbols.append(sym)
  logging.debug('Done expanding sparse_symbols')
  return models.SymbolGroup(raw_symbols)
def _ExpandSparseSymbols ( sparse_symbols ) : representative_symbols = set ( ) raw_symbols = [ ] logging . debug ( 'Expanding sparse_symbols with aliases of included symbols' ) for sym in sparse_symbols : if sym . aliases : num_syms = len ( representative_symbols ) representative_symbols . add ( sym . aliases [ 0 ] ) if num_syms < len ( representative_symbols ) : raw_symbols . extend ( sym . aliases ) else : raw_symbols . append ( sym ) logging . debug ( 'Done expanding sparse_symbols' ) return models . SymbolGroup ( raw_symbols )
Expands a symbol list with all aliases of all symbols in the list.
Expands a symbol list with all aliases of all symbols in the list .
"""Expands a symbol list with all aliases of all symbols in the list.

  Args:
    sparse_symbols: A list or SymbolGroup to expand.
  """
sparse_symbols
A list or SymbolGroup to expand.
A list or SymbolGroup to expand .