InitParserConvert

sbt.std.InitParserConvert
class InitParserConvert[C <: Quotes & Singleton](val qctx: C, valStart: Int) extends Convert[C], ContextUtil[C]

Converts an input Term of type State => Parser[A] or Initialize[State => Parser[A]] into a Term of type Initialize[State => Parser[A]].

Attributes

Graph
Supertypes
trait Convert[C]
trait ContextUtil[C]
class Object
trait Matchable
class Any

Members list

Type members

Inherited classlikes

Attributes

Inherited from:
ContextUtil
Supertypes
class Object
trait Matchable
class Any
enum Converted

Attributes

Inherited from:
Convert
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
case Success
case Failure
object Converted

Attributes

Inherited from:
Convert
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
final class Input(val tpe: TypeRepr, val qual: Term, val term: Term, val name: String)

Attributes

Inherited from:
ContextUtil
Supertypes
class Object
trait Matchable
class Any
final class Output(val tpe: TypeRepr, val term: Term, val name: String, val parent: Symbol, val outputType: OutputType)

Represents an output expression via:

Represents an output expression via:

  1. Def.declareOutput(VirtualFile)
  2. Def.declareOutputDirectory(VirtualFileRef)

Attributes

Inherited from:
ContextUtil
Supertypes
class Object
trait Matchable
class Any
enum OutputType

Attributes

Inherited from:
ContextUtil
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
trait TermTransform[F[_]]

Attributes

Inherited from:
ContextUtil
Supertypes
class Object
trait Matchable
class Any

Value members

Concrete methods

override def convert[A : Type](nme: String, in: Term): Converted

Attributes

Definition Classes
Convert

Inherited methods

def applyTuple(tupleTerm: Term, tpe: TypeRepr, idx: Int): Term

Attributes

Inherited from:
ContextUtil
def asPredicate: (String, TypeRepr, Term) => Boolean

Attributes

Inherited from:
Convert
def collectDefs(tree: Term, isWrapper: (String, TypeRepr, Term) => Boolean): Set[Symbol]

Attributes

Inherited from:
ContextUtil
def freshName(prefix: String): String

Attributes

Inherited from:
ContextUtil
def freshValDef(parent: Symbol, tpe: TypeRepr, rhs: Term): ValDef

Attributes

Inherited from:
ContextUtil
def idTransform[F[_]]: TermTransform[F]

Attributes

Inherited from:
ContextUtil
def makeTuple(inputs: List[Input]): BuilderResult

Attributes

Inherited from:
ContextUtil
def transformWrappers(tree: Term, subWrapper: [a] => (x$1: String, x$2: Type[a], x$3: Term, x$4: Term) => Converted, owner: Symbol): Term

Substitutes wrappers in tree t with the result of subWrapper. A wrapper is a Tree of the form f[T](v) for which isWrapper( , , .target) returns true. Typically, f is a Select or Ident. The wrapper is replaced with the result of subWrapper(<Type of T>, <Tree of v>, <wrapper Tree>)

Substitutes wrappers in tree t with the result of subWrapper. A wrapper is a Tree of the form f[T](v) for which isWrapper( , , .target) returns true. Typically, f is a Select or Ident. The wrapper is replaced with the result of subWrapper(<Type of T>, <Tree of v>, <wrapper Tree>)

Attributes

Inherited from:
Convert
def tupleTypeRepr(param: List[TypeRepr]): TypeRepr

Attributes

Inherited from:
ContextUtil
def typed[A : Type](value: Term): Term

Attributes

Inherited from:
ContextUtil

Concrete fields

override val qctx: C

Givens

Inherited givens

given given_qctx_type: C

Attributes

Inherited from:
ContextUtil