code: func (p *printer) isSingleLineObject(val *ast.ObjectItem) bool {
  	// If there is a lead comment, can't be one line
  	if val.LeadComment != nil {
  		return false
  	}
  
  	// If there is assignment, we always break by line
  	if val.Assign.IsValid() {
  		return false
  	}
  
  	// If it isn't an object type, then its not a single line object
  	ot, ok := val.Val.(*ast.ObjectType)
  	if !ok {
  		return false
  	}
  
  	// If the object has no items, it is single line!
  	return len(ot.List.Items) == 0
  }
docs: // isSingleLineObject tells whether the given object item is a single
  // line object such as "obj {}".
  //
  // A single line object:
  //
  //   * has no lead comments (hence multi-line)
  //   * has no assignment
  //   * has no values in the stanza (within {})
  //