class Ikra::AST::ConstNode
Attributes
identifier[R]
Public Class Methods
new(identifier:)
click to toggle source
# File lib/ast/nodes.rb, line 322 def initialize(identifier:) @identifier = identifier end
Public Instance Methods
accept(visitor)
click to toggle source
# File lib/ast/visitor.rb, line 68 def accept(visitor) visitor.visit_const_node(self) end
clone()
click to toggle source
# File lib/ast/nodes.rb, line 326 def clone return ConstNode.new(identifier: @identifier) end
to_s()
click to toggle source
# File lib/ast/printer.rb, line 66 def to_s return "[ConstNode: #{identifier.to_s}]" end