Package org.ek9lang.compiler.support
Class ResolverOrDefiner
java.lang.Object
org.ek9lang.compiler.common.RuleSupport
org.ek9lang.compiler.support.ResolverOrDefiner
- Direct Known Subclasses:
ParameterisedLocator
,ResolveOrDefineTypes
Used as an abstract base for parameterised types.
-
Field Summary
Fields inherited from class org.ek9lang.compiler.common.RuleSupport
errorListener, symbolsAndScopes
-
Constructor Summary
ModifierConstructorDescriptionprotected
ResolverOrDefiner
(SymbolsAndScopes symbolsAndScopes, SymbolFactory symbolFactory, ErrorListener errorListener, boolean errorIfNotDefinedOrResolved) -
Method Summary
Modifier and TypeMethodDescriptionresolveOrDefine
(ParameterisedTypeData details) Attempts to resolve the parameterised type first and return that, else returns a new symbol.
-
Field Details
-
symbolFactory
-
errorIfNotDefinedOrResolved
protected final boolean errorIfNotDefinedOrResolved
-
-
Constructor Details
-
ResolverOrDefiner
protected ResolverOrDefiner(SymbolsAndScopes symbolsAndScopes, SymbolFactory symbolFactory, ErrorListener errorListener, boolean errorIfNotDefinedOrResolved)
-
-
Method Details
-
resolveOrDefine
Attempts to resolve the parameterised type first and return that, else returns a new symbol.
-