Class AppropriateBodyOrError

java.lang.Object
org.ek9lang.compiler.common.RuleSupport
org.ek9lang.compiler.common.AppropriateBodyOrError
All Implemented Interfaces:
BiConsumer<MethodSymbol,EK9Parser.OperationDetailsContext>

public class AppropriateBodyOrError extends RuleSupport implements BiConsumer<MethodSymbol,EK9Parser.OperationDetailsContext>
Checks if the body of a method/operator is appropriate. i.e. has it been marked as abstract or default - neither of which need a body. Emits compiler error if inappropriate.