OverridingPairsChecker

dotty.tools.dotc.typer.RefChecks$.OverridingPairsChecker
class OverridingPairsChecker(clazz: ClassSymbol, self: Type)(using x$3: Context) extends Cursor

A class for checking all overriding pairs of class with a given check function

Attributes

Graph
Supertypes
class Cursor
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

override def canBeHandledByParent(sym1: Symbol, sym2: Symbol, parent: Symbol): Boolean

Can pair sym1/sym2 be handled by parent parentType which is a common subtype of both symbol's owners? Assumed to be true by default, but overridden in RefChecks.

Can pair sym1/sym2 be handled by parent parentType which is a common subtype of both symbol's owners? Assumed to be true by default, but overridden in RefChecks.

Attributes

Definition Classes
def checkAll(checkOverride: (Symbol, Symbol) => Unit): Unit
override def matches(sym1: Symbol, sym2: Symbol): Boolean

Does sym1 match sym2 so that it qualifies as overriding when both symbols are seen as members of self? Types always match. Term symbols match if their membertypes relative to self do.

Does sym1 match sym2 so that it qualifies as overriding when both symbols are seen as members of self? Types always match. Term symbols match if their membertypes relative to self do.

Attributes

Definition Classes

Inherited methods

final def hasNext: Boolean

Attributes

Inherited from:
Cursor
final def next(): Unit

Attributes

Inherited from:
Cursor

Inherited fields

If not null: The symbol overridden by overriding

If not null: The symbol overridden by overriding

Attributes

Inherited from:
Cursor

The current candidate symbol for overriding

The current candidate symbol for overriding

Attributes

Inherited from:
Cursor