Class OperationDetailsLocator
java.lang.Object
org.ek9lang.compiler.phase7.support.OperationDetailsLocator
THE search of an aggregate's method and operator declarations for the one whose recorded symbol matches - use this
(through
OperationDetailContextOrError or ParameterizedOperationDetailContextOrError), never a
third copy of the two loops. Methods are searched first, then operators, and the first match wins.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static final recordA declaration that matched. -
Method Summary
Modifier and TypeMethodDescription(package private) static Optional<OperationDetailsLocator.Located> find(ParsedModule parsedModule, EK9Parser.AggregatePartsContext ctx, Predicate<ISymbol> matches) Find the declaration whose recorded symbol satisfiesmatches.
-
Method Details
-
find
static Optional<OperationDetailsLocator.Located> find(ParsedModule parsedModule, EK9Parser.AggregatePartsContext ctx, Predicate<ISymbol> matches) Find the declaration whose recorded symbol satisfiesmatches.- Parameters:
parsedModule- the module that recorded the symbols ofctx's declarationsctx- the aggregate parts to searchmatches- the test of a declaration's recorded symbol (which may be null)- Returns:
- the matching declaration, or empty when none matches
-