Class ForSymbol

All Implemented Interfaces:
Serializable, IScope, IScopedSymbol, ISymbol, ITokenReference

public class ForSymbol extends ScopedSymbol
EK9 'for' type symbol - we need a scope because we declare a new variable as the loop variable. The for loop can be used to iterator over a collection or increment/decrement over a range.
See Also:
  • Constructor Details

    • ForSymbol

      public ForSymbol(IScope enclosingScope)
  • Method Details

    • clone

      public ForSymbol clone(IScope withParentAsAppropriate)
      Description copied from interface: ISymbol
      Clone the symbol and re-parent if this symbol like a method should have a parent. Other symbols like VariableSymbols are un-parented
      Specified by:
      clone in interface IScope
      Specified by:
      clone in interface IScopedSymbol
      Specified by:
      clone in interface ISymbol
      Overrides:
      clone in class ScopedSymbol
    • cloneIntoForSymbol

      protected ForSymbol cloneIntoForSymbol(ForSymbol newCopy)