TransformUtil

cps.plugin.TransformUtil
object TransformUtil

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

case class IncorrectOwnerRecord(contextOwner: Symbol, expectedOwner: Symbol, realOwner: Symbol, tree: Tree)

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Value members

Concrete methods

def collectDefOwners(tree: Tree)(using Context): List[(Symbol, Symbol)]

find all definitions in the tree, and return list of pairs (definition, owner)

find all definitions in the tree, and return list of pairs (definition, owner)

Attributes

def findFirstSubtermWithIncorrectOwner(tree: Tree, topOwner: Symbol)(using Context): Option[IncorrectOwnerRecord]
def findSubtermWithOtherOwner(tree: Tree, owner: Symbol)(using Context): Option[Tree]
def findSubtermWithOwner(tree: Tree, owner: Symbol, reportWarnings: Boolean)(using Context): Option[Tree]
def makeLambda(params: List[ValDef], resultType: Type, owner: Symbol, body: Tree, bodyOwner: Symbol)(using Context): Block
def methodTypeFromFunctionType(candidate: Type, srcPos: SrcPos)(using Context): Option[MethodType]
def realWiden(tpe: Type)(using Context): Type
def substParams(term: Tree, input: List[ValDef], output: List[Tree])(using Context): Tree
def substParamsMap(term: Tree, map: Map[Symbol, Tree])(using Context): Tree

Concrete fields

final val COMMA: ","