code: func (qp *QueryParserBase) discardEscapeChar(input string) (string, error) {
  	output := make([]rune, len(input))
  
  	length := 0
  
  	lastCharWasEscapeChar := false
  
  	codePointMultiplier := 0
  
  	// codePoint := 0
  
  	for _, curChar := range input {
  		if codePointMultiplier > 0 {
  			panic("not implemented yet")
  		} else if lastCharWasEscapeChar {
  			panic("not implemented yet")
  		} else {
  			if curChar == '\\' {
  				lastCharWasEscapeChar = true
  			} else {
  				output[length] = curChar
  				length++
  			}
  		}
  	}
  
  	if codePointMultiplier > 0 {
  		return "", errors.New("Truncated unicode escape sequence.")
  	}
  	if lastCharWasEscapeChar {
  		return "", errors.New("Term can not end with escape character.")
  	}
  	return string(output), nil
  }
docs: // L906