ammonite.kernel.AutocompleteOutput.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ammonite-kernel_2.12 Show documentation
Show all versions of ammonite-kernel_2.12 Show documentation
Stripped down version of ammonite
package ammonite.kernel
/** Output of an autocomplete request
*
* {{{
* val k = ammonite.kernel.ReplKernel()
* val testStr = "val x = 1; x + x.>"
* val AutocompleteOutput(names, signatures) = k.complete(testStr, testStr.length)
* assert(names == Seq(">=", ">>", ">>>"))
* assert(signatures.contains("def >(x: Byte): Boolean"))
* }}}
*
*
* @param names names that match at the given locations
* @param signatures signatures that match at the given location
*
* @author Harshad Deo
* @since 0.1.2
*/
final case class AutocompleteOutput(names: Seq[String], signatures: Seq[String])