mojo/public/tools/mojom/mojom/generate/translate.py
def _AssignDefaultOrdinals(items):
  """Assigns default ordinal values to a sequence of items if necessary."""
  next_ordinal = 0
  for item in items:
    if item.ordinal is not None:
      next_ordinal = item.ordinal + 1
    else:
      item.ordinal = next_ordinal
      next_ordinal += 1
Assigns default ordinal values to a sequence of items if necessary.
Assigns default ordinal values to a sequence of items if necessary.
Assigns default ordinal values to a sequence of items if necessary .
def _AssignDefaultOrdinals(items):
  next_ordinal = 0
  for item in items:
    if item.ordinal is not None:
      next_ordinal = item.ordinal + 1
    else:
      item.ordinal = next_ordinal
      next_ordinal += 1
def _AssignDefaultOrdinals ( items ) : next_ordinal = 0 for item in items : if item . ordinal is not None : next_ordinal = item . ordinal + 1 else : item . ordinal = next_ordinal next_ordinal += 1
Assigns default ordinal values to a sequence of items if necessary.
Assigns default ordinal values to a sequence of items if necessary .
"""Assigns default ordinal values to a sequence of items if necessary."""
items