Class IsVariableOccurrence

java.lang.Object
org.ek9lang.compiler.support.IsVariableOccurrence
All Implemented Interfaces:
Predicate<ISymbol>

public final class IsVariableOccurrence extends Object implements Predicate<ISymbol>
THE test that an identifier's recorded symbol is a VARIABLE (a local, a parameter, a returning variable, a property), not a call or a type: the occurrences the flow checks follow an object through. Use this; never symbol != null && !(symbol instanceof CallSymbol) && symbol.isVariable() written out.
  • Constructor Details

    • IsVariableOccurrence

      public IsVariableOccurrence()
  • Method Details