Class TextBodyDetailContextOrError
java.lang.Object
org.ek9lang.compiler.phase7.support.TextBodyDetailContextOrError
- All Implemented Interfaces:
BiFunction<MethodSymbol, EK9Parser.TextDeclarationContext, EK9Parser.TextBodyDeclarationContext>
public class TextBodyDetailContextOrError
extends Object
implements BiFunction<MethodSymbol, EK9Parser.TextDeclarationContext, EK9Parser.TextBodyDeclarationContext>
Locates the textBodyDeclaration parse context for a given text method symbol.
This is used during IR generation to find the parse context that corresponds to a method symbol, allowing access to the stringLit (return value) and argumentParam (parameters) for code generation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(MethodSymbol method, EK9Parser.TextDeclarationContext ctx) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BiFunction
andThen
-
Constructor Details
-
TextBodyDetailContextOrError
-
-
Method Details
-
apply
public EK9Parser.TextBodyDeclarationContext apply(MethodSymbol method, EK9Parser.TextDeclarationContext ctx) - Specified by:
applyin interfaceBiFunction<MethodSymbol, EK9Parser.TextDeclarationContext, EK9Parser.TextBodyDeclarationContext>
-