Package org.ek9lang.compiler.phase1
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 org.ek9lang.compiler.common.RuleSupport
errorListener, symbolsAndScopes
-
Constructor Summary
ConstructorDescriptionNoMethodReturnOrError
(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener) -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(MethodSymbol methodSymbol, EK9Parser.MethodDeclarationContext ctx) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.function.BiConsumer
andThen
-
Constructor Details
-
NoMethodReturnOrError
NoMethodReturnOrError(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener)
-
-
Method Details
-
accept
- Specified by:
accept
in interfaceBiConsumer<MethodSymbol,
EK9Parser.MethodDeclarationContext>
-