Dotty Documentation


trait InfoTransformer
extends Phase with DenotTransformer

A transformer that only transforms the info field of denotations

[-] Constructors

[-] Members

[+] protected def mayChange ( sym: Symbol ) ( implicit ctx: Context ) : Boolean

Denotations with a symbol where mayChange is false are guaranteed to be unaffected by this transform, so transformInfo need not be run. This can save time, and more importantly, can help avoid forcing symbol completers.

[+] def transform ( ref: SingleDenotation ) ( implicit ctx: Context ) : SingleDenotation

The transformation method

[+] def transformInfo ( tp: Type , sym: Symbol ) ( implicit ctx: Context ) : Type