Class MethodNotOperatorOrError

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

final class MethodNotOperatorOrError extends RuleSupport implements BiConsumer<MethodSymbol,EK9Parser.MethodDeclarationContext>
Just checks that named operator methods: mod, rem, abs, sqrt, open, close, contains, matches, empty, length are not being used as just method names. They are reserved for operators and the semantics that go with those operators. While they could be used with different arguments/parameters - this might be confusing.