Package org.ek9lang.compiler.phase3
Class PropertyFieldOrError
java.lang.Object
org.ek9lang.compiler.common.RuleSupport
org.ek9lang.compiler.common.TypedSymbolAccess
org.ek9lang.compiler.phase3.PropertyFieldOrError
- All Implemented Interfaces:
BiFunction<EK9Parser.IdentifierContext,
IScope, ISymbol>
final class PropertyFieldOrError
extends TypedSymbolAccess
implements BiFunction<EK9Parser.IdentifierContext,IScope,ISymbol>
Used for resolving and recoding of fields on specific types.
This takes into account field visibility and where access is being made from.
So it will work on a range of aggregates, records, classes, components, etc.
-
Field Summary
Fields inherited from class org.ek9lang.compiler.common.RuleSupport
errorListener, symbolsAndScopes
-
Constructor Summary
ConstructorDescriptionPropertyFieldOrError
(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener) Create a new field resolver. -
Method Summary
Modifier and TypeMethodDescriptionapply
(EK9Parser.IdentifierContext ctx, IScope scopeToResolveIn) Methods inherited from class org.ek9lang.compiler.common.TypedSymbolAccess
getRecordedAndTypedSymbol, isProcessingScopePure, recordATypedSymbol
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.BiFunction
andThen
-
Constructor Details
-
PropertyFieldOrError
PropertyFieldOrError(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener) Create a new field resolver.
-
-
Method Details
-
apply
- Specified by:
apply
in interfaceBiFunction<EK9Parser.IdentifierContext,
IScope, ISymbol>
-