NameFilter

dotty.tools.dotc.core.Types$.NameFilter
abstract class NameFilter

A name filter selects or discards a member name of a type pre. To enable efficient caching, name filters have to satisfy the following invariant: If keep is a name filter, and pre has class C as a base class, then

keep(pre, name) implies keep(C.this, name)

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object fieldFilter.type
object implicitFilter.type
object takeAllFilter.type
object typeNameFilter.type

Members list

Concise view

Value members

Abstract methods

def apply(pre: Type, name: Name)(using Context): Boolean

Filter does not need to be rechecked with full prefix, if it has been already checked for the class denotation of the prefix

Filter does not need to be rechecked with full prefix, if it has been already checked for the class denotation of the prefix

Attributes