TransformUtil
cps.macros.common.TransformUtil
object TransformUtil
Attributes
- Source
- TransformUtil.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
TransformUtil.type
Members list
Type members
Classlikes
class DefinitionWithIncorrectOwner(using quotes: Quotes)(tree: quotes.reflect.Definition, owner: quotes.reflect.Symbol, expectedOwner: quotes.reflect.Symbol, contextOwner: quotes.reflect.Symbol)
Attributes
- Source
- TransformUtil.scala
- Supertypes
-
class Objecttrait Matchableclass Any
Value members
Concrete methods
def changeSymsInTerm(using Quotes)(association: Map[x$1.reflect.Symbol, x$1.reflect.Tree], body: x$1.reflect.Term, owner: x$1.reflect.Symbol): x$1.reflect.Term
Attributes
- Source
- TransformUtil.scala
def changeSymsInTree(using qctx: Quotes)(association: Map[qctx.reflect.Symbol, qctx.reflect.Tree], body: qctx.reflect.Tree, owner: qctx.reflect.Symbol): qctx.reflect.Tree
Attributes
- Source
- TransformUtil.scala
def createFunctionType(using Quotes)(argTypes: List[x$1.reflect.TypeRepr], resultType: x$1.reflect.TypeRepr): x$1.reflect.TypeRepr
Attributes
- Source
- TransformUtil.scala
Attributes
- Source
- TransformUtil.scala
def ensureTyped(using qctx: Quotes)(term: qctx.reflect.Term, tp: qctx.reflect.TypeRepr): qctx.reflect.Term
Attributes
- Source
- TransformUtil.scala
Value parameters
- fun
-
expression, part of (Apply(fun, args)). Extract function symbols from carried applications: Apply( ... Apply(fun1, args1), ..., argsN) => fun1
Attributes
- Returns
-
extracted function symbol, (or just fun.symbol is this is not a carried application).
- Source
- TransformUtil.scala
Attributes
- Source
- TransformUtil.scala
Attributes
- Source
- TransformUtil.scala
def findSubtermWithIncorrectOwner(using Quotes)(currentOwner: x$1.reflect.Symbol, tree: x$1.reflect.Tree): Option[DefinitionWithIncorrectOwner]
Attributes
- Source
- TransformUtil.scala
def inMonadOrChild[F[_] : Type](using Quotes)(te: x$1.reflect.TypeRepr): Option[x$1.reflect.TypeRepr]
Attributes
- Source
- TransformUtil.scala
Attributes
- Source
- TransformUtil.scala
def prependStatementToBlock(using Quotes)(st: x$1.reflect.Statement, block: x$1.reflect.Block): x$1.reflect.Block
Attributes
- Source
- TransformUtil.scala
def prependStatementsToBlock(using Quotes)(sts: List[x$1.reflect.Statement], block: x$1.reflect.Block): x$1.reflect.Block
Attributes
- Source
- TransformUtil.scala
def prependStatementsToTerm(using Quotes)(statements: List[x$1.reflect.Statement], term: x$1.reflect.Term): x$1.reflect.Block
Attributes
- Source
- TransformUtil.scala
def reallyChangeOwner(using Quotes)(tree: x$1.reflect.Tree, owner: x$1.reflect.Symbol): x$1.reflect.Tree
Attributes
- Source
- TransformUtil.scala
Attributes
- Source
- TransformUtil.scala
def substituteLambdaParams(using qctx: Quotes)(oldParams: List[qctx.reflect.ValDef], newParams: List[qctx.reflect.Tree], body: qctx.reflect.Term, owner: qctx.reflect.Symbol): qctx.reflect.Term
Attributes
- Source
- TransformUtil.scala
widen, which works over 'or' and 'and' types. (bug in dotty?)
In this article