object Typecheck
This macro checks if some code can be parsed and typechecks ok
Credits:
- Stefan Zeiger (@StefanZeiger) for the typecheck method
- Jean-Remi Desjardins (@jrdesjardins) for the tc interpolator
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Typecheck
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Type Members
- implicit final class typecheckQuote extends AnyVal
Typecheck code and fail at runtime if the code doesn't typecheck If the code doesn't parse there will be a compile-time error
Typecheck code and fail at runtime if the code doesn't typecheck If the code doesn't parse there will be a compile-time error
- returns
the parsed/typechecked code if it is ok or a Typechecked object otherwise
- implicit final class typecheckWithQuote extends AnyVal
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- macro def apply(params: TypecheckParams)(code: String): Typechecked
- macro def apply(code: String): Typechecked
Typecheck code and fail at runtime if the code doesn't typecheck If the code doesn't parse there will be a compile-time error
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val implicitsAtCompileTime: TypecheckParams
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val macrosAtCompileTime: TypecheckParams
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val parsingAtRuntime: TypecheckParams
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- macro def typecheck(code: String): Typechecked
alias for apply
- def typecheckCodeImpl(c: Context)(variables: scala.reflect.macros.whitebox.Context.Expr[Any]*): scala.reflect.macros.whitebox.Context.Tree
- def typecheckCodeImplementation(c: Context)(variables: scala.reflect.macros.whitebox.Context.Expr[Any]*)(params: scala.reflect.macros.whitebox.Context.Expr[TypecheckParams]): scala.reflect.macros.whitebox.Context.Tree
- def typecheckExceptImpl(c: Context)(params: scala.reflect.macros.whitebox.Context.Expr[TypecheckParams])(code: scala.reflect.macros.whitebox.Context.Expr[String]): scala.reflect.macros.whitebox.Context.Tree
- def typecheckImpl(c: Context)(code: scala.reflect.macros.whitebox.Context.Expr[String]): scala.reflect.macros.whitebox.Context.Tree
- def typecheckImplementation(c: Context)(code: scala.reflect.macros.whitebox.Context.Expr[String], params: scala.reflect.macros.whitebox.Context.Expr[TypecheckParams]): scala.reflect.macros.whitebox.Context.Tree
- macro def typecheckWith(params: TypecheckParams)(code: String): Typechecked
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()