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.
-
Field Summary
Fields inherited from class RuleSupport
errorListener, symbolsAndScopes -
Constructor Summary
ConstructorsConstructorDescriptionNoMethodReturnOrError(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(MethodSymbol methodSymbol, EK9Parser.MethodDeclarationContext ctx) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BiConsumer
andThen
-
Constructor Details
-
NoMethodReturnOrError
NoMethodReturnOrError(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener)
-
-
Method Details
-
accept
- Specified by:
acceptin interfaceBiConsumer<MethodSymbol, EK9Parser.MethodDeclarationContext>
-