Class NoLocalNamedLikeAMethodOrError

java.lang.Object
org.ek9lang.compiler.phase2.NoLocalNamedLikeAMethodOrError
All Implemented Interfaces:
Consumer<ParsedModule>

final class NoLocalNamedLikeAMethodOrError extends Object implements Consumer<ParsedModule>
Every LOCAL variable of a module checked against the methods of the type it is declared in - its own, inherited and from traits (see NoNameCollisionOrError.errorsIfLocalNamedLikeAMethod(IAggregateSymbol, ISymbol)). Run in TYPE_HIERARCHY_CHECKS because only then is every class's super and traits attached (EXPLICIT_TYPE_SYMBOL_DEFINITION attaches them on leaving the class, after its body's variables were processed), and before FULL_RESOLUTION, where 'total <- total()' would otherwise surface as E50010 'type not resolved'.
  • Constructor Details

    • NoLocalNamedLikeAMethodOrError

      NoLocalNamedLikeAMethodOrError()
  • Method Details