Class SymbolChecker

java.lang.Object
org.ek9lang.compiler.support.SymbolChecker

public class SymbolChecker extends Object
General utility class that searches in a scope for a symbol to check for duplicates. Note that is a bit ore than a boolean check. It will formulate error messages and add then to the error listener it has been provided with.
  • Constructor Details

    • SymbolChecker

      public SymbolChecker(ErrorListener errorListener)
  • Method Details

    • errorsIfSymbolAlreadyDefined

      public boolean errorsIfSymbolAlreadyDefined(IScope inScope, ISymbol symbol, boolean limitVarSearchToBlockScope)
      Check for exising symbol in the scope. if returns true then errors will have been added to the error listener.