Class Nodes.ConstantReadNode

java.lang.Object
org.prism.Nodes.Node
org.prism.Nodes.ConstantReadNode
Enclosing class:
Nodes

public static final class Nodes.ConstantReadNode extends Nodes.Node
 Represents referencing a constant.

     Foo
     ^^^
 
  • Field Details

    • name

      public final org.jruby.RubySymbol name
       The name of the [constant](https://github.com/ruby/prism/blob/main/docs/parsing_rules.md#constants).
      
           X              # name `:X`
      
           SOME_CONSTANT  # name `:SOME_CONSTANT`
       
  • Constructor Details

    • ConstantReadNode

      public ConstantReadNode(int startOffset, int length, org.jruby.RubySymbol name)
  • Method Details