-
XA
LINK 800 MAKE MARK DIGIT1 COPY X #PASS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sealed trait Term | |
case class TmVar(value: Any) extends Term { | |
override def toString: String = s"$value" | |
} | |
case class TmAbs(x: Term, t: Term) extends Term { | |
override def toString: String = s"λ($x.$t)" | |
} | |
case class TmApply(t1: Term, t2: Term) extends Term { | |
override def toString: String = s"($t1 $t2)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// λx.t :: (x: Any) => t | |
// t t :: t(t) | |
implicit class DirtyAny(self: Any) { | |
def apply(): Any = self match { | |
case f: (Unit => Any) => f() | |
} | |
def apply(that: Any): Any = self match { | |
case f: (Any => Any) => f(that) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sealed trait Term | |
case class TmVar(value: Any) extends Term { | |
override def toString: String = s"$value" | |
} | |
case class TmAbs(x: Term, t: Term) extends Term { | |
override def toString: String = s"λ($x.$t)" | |
} | |
case class TmApply(t1: Term, t2: Term) extends Term { | |
override def toString: String = s"($t1 $t2)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package xsbt | |
import scala.reflect.NameTransformer | |
import scala.tools.nsc.Global | |
object SemanticDBHelper { | |
def semanticName[GlobalType <: Global](g: GlobalType)(sym: g.Symbol): String = { | |
var b: java.lang.StringBuffer = null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"types": [ | |
{ | |
"name": "Range", | |
"namespace": "xsbti.semanticdb3", | |
"target": "Java", | |
"type": "record", | |
"doc": [ | |
"<code>Range</Code> in SemanticDB directly corresponds to <code>Range</code> in LSP.", | |
"@see <a href='https://github.com/scalameta/scalameta/blob/master/semanticdb/semanticdb3/semanticdb3.md#range'>scalameta/semanticdb3#Range</a>", |