Class OverridePairMessage

java.lang.Object
org.ek9lang.compiler.phase3.OverridePairMessage

final class OverridePairMessage extends Object
THE message prefix naming an own declaration and the other declaration it is paired with (an override and what it overrides, a dispatcher handler and its entry point): 'own' and 'other' <location>:.

The text is a prefix that the override, purity, sanitised and dispatcher checks append their reason to, and that rich messages and editors read, so it is spelt once - hold one. parentOf(ISymbol) is the second half on its own ('other' <location>) - never recover it by cutting at " and " in pair(ISymbol, ISymbol)'s text.

  • Constructor Details

    • OverridePairMessage

      OverridePairMessage()
  • Method Details

    • pair

      String pair(ISymbol own, ISymbol other)
      'own' and 'other' <location of other>:.
    • parentOf

      String parentOf(ISymbol other)
      'other' <location of other> - the paired declaration as the pair prefix names it.