Package org.jruby.ast

Interface IScopedNode

All Known Implementing Classes:
DAsgnNode, DVarNode, LocalAsgnNode, LocalVarNode

public interface IScopedNode
A marker interface for scoped variables (which have an offset and depth).
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    How many scopes down we should look for this variable
    int
    Which index (or slot) this variable is located at in the scope it is stored in.
  • Method Details

    • getDepth

      int getDepth()
      How many scopes down we should look for this variable
    • getIndex

      int getIndex()
      Which index (or slot) this variable is located at in the scope it is stored in.