Package org.ek9lang.compiler.support
Class NoNameCollisionOrError
java.lang.Object
org.ek9lang.compiler.support.NoNameCollisionOrError
- All Implemented Interfaces:
BiPredicate<IScope,
ISymbol>
Designed to check if variable name and method names collide with Type/Function names.
-
Constructor Summary
ConstructorDescriptionNoNameCollisionOrError
(ErrorListener errorListener, boolean useQualifiedName) -
Method Summary
Modifier and TypeMethodDescriptionboolean
errorsIfResolved
(IScope inScope, ISymbol symbol, SymbolSearch search, ErrorListener.SemanticClassification classificationError) If a symbol is resolved then this will emit an error.boolean
Check for exising symbol in the scope.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.BiPredicate
and, negate, or
-
Constructor Details
-
NoNameCollisionOrError
-
-
Method Details
-
test
Check for exising symbol in the scope. if returns true then errors will have been added to the error listener.- Specified by:
test
in interfaceBiPredicate<IScope,
ISymbol>
-
errorsIfResolved
public boolean errorsIfResolved(IScope inScope, ISymbol symbol, SymbolSearch search, ErrorListener.SemanticClassification classificationError) If a symbol is resolved then this will emit an error.
-