All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dotty.ammonite.compiler.AmmCompletionExtras.scala Maven / Gradle / Ivy

There is a newer version: 3.0.0
Show newest version
package dotty.ammonite.compiler

import dotty.tools.dotc.interactive.Completion

trait AmmCompletionExtras {

  def maybeBackticked(input: String, hasBackTick: Boolean): Completion =
    Completion.backtickCompletions(Completion(input, "", Nil), hasBackTick)
  def backtick(completion: Completion): Completion =
    Completion.backtickCompletions(completion, completion.label.startsWith("`"))

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy