Class NoMethodReturnOrError

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

final class NoMethodReturnOrError 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 checks we can do as early in the compilation as possible. Fail as early as possible.