Class CheckNoMethodReturn

java.lang.Object
org.ek9lang.compiler.common.RuleSupport
org.ek9lang.compiler.phase1.CheckNoMethodReturn
All Implemented Interfaces:
BiConsumer<MethodSymbol,EK9Parser.MethodDeclarationContext>

final class CheckNoMethodReturn extends RuleSupport implements BiConsumer<MethodSymbol,EK9Parser.MethodDeclarationContext>
Typically used for Constructors, but could be used in other contexts where a method is not expected to return anything. Used in the very early stages of compilation. Will probably need additional checks in the IR phase. But these are basic check we can do as early in the compilation as possible. Fail as early as possible.