mojo/public/tools/mojom/mojom/generate/pack.py
def GetFieldOffset(field, last_field):
  """Returns a 2-tuple of the field offset and bit (for BOOLs)."""
  if (field.field.kind == mojom.BOOL and last_field.field.kind == mojom.BOOL
      and last_field.bit < 7):
    return (last_field.offset, last_field.bit + 1)

  offset = last_field.offset + last_field.size
  pad = GetPad(offset, field.alignment)
  return (offset + pad, 0)
Returns a 2-tuple of the field offset and bit (for BOOLs).
Returns a 2-tuple of the field offset and bit (for BOOLs).
Returns a 2 - tuple of the field offset and bit ( for BOOLs ) .
def GetFieldOffset(field, last_field):
  if (field.field.kind == mojom.BOOL and last_field.field.kind == mojom.BOOL
      and last_field.bit < 7):
    return (last_field.offset, last_field.bit + 1)
  offset = last_field.offset + last_field.size
  pad = GetPad(offset, field.alignment)
  return (offset + pad, 0)
def GetFieldOffset ( field , last_field ) : if ( field . field . kind == mojom . BOOL and last_field . field . kind == mojom . BOOL and last_field . bit < 7 ) : return ( last_field . offset , last_field . bit + 1 ) offset = last_field . offset + last_field . size pad = GetPad ( offset , field . alignment ) return ( offset + pad , 0 )
Returns a 2-tuple of the field offset and bit (for BOOLs).
Returns a 2 - tuple of the field offset and bit ( for BOOLs ) .
"""Returns a 2-tuple of the field offset and bit (for BOOLs)."""
field
last_field