fun completionTextFromFullName()

in common/src/main/kotlin/model/Completion.kt [34:45]


fun completionTextFromFullName(fullName: String): String {
  var completionText = fullName
  var position = completionText.indexOf('(')
  if (position != -1) {
    if (completionText[position - 1] == ' ') position -= 2
    if (completionText[position + 1] == ')') position++
    completionText = completionText.substring(0, position + 1)
  }
  position = completionText.indexOf(":")
  if (position != -1) completionText = completionText.substring(0, position - 1)
  return completionText
}