Class ControlSymbol

All Implemented Interfaces:
Serializable, IScope, IScopedSymbol, ISymbol, ITokenReference
Direct Known Subclasses:
SwitchSymbol, TrySymbol

public class ControlSymbol extends ScopedSymbol
EK9 switch/try control type symbol - this can effectively return a value if it is configured with returning part. When generating output we need this to create its own block so variables inside are hidden from later scopes. So as we have a returning part (optional) we need a scope to put it in (i.e. this scope) this then means that when we finally come to generate the output - this symbol will be able to supply the outer variable to set the result to.
See Also:
  • Constructor Details

    • ControlSymbol

      public ControlSymbol(String name, IScope enclosingScope)
      Create a new Control Symbol.
  • Method Details