docs: function mergeAffixEmoticon(child, index, parent) {
    var children = child.children
    var position
    var node
    var prev
  
    if (children && children.length !== 0 && index !== 0) {
      position = -1
  
      while (children[++position]) {
        node = children[position]
  
        if (node.type === EMOTICON_NODE) {
          prev = parent.children[index - 1]
  
          prev.children = prev.children.concat(children.slice(0, position + 1))
          child.children = children.slice(position + 1)
  
          if (node.position && child.position && prev.position) {
            prev.position.end = node.position.end
            child.position.start = node.position.end
          }
  
          /* Next, iterate over the node again. */
          return index
        }
  
        if (node.type !== 'WhiteSpaceNode') {
          break
        }
      }
    }
  }