class Ikra::AST::LVarReadNode
Attributes
identifier[R]
variable_kind[RW]
Public Class Methods
new(identifier:)
click to toggle source
# File lib/ast/nodes.rb, line 334 def initialize(identifier:) @identifier = identifier end
Public Instance Methods
accept(visitor)
click to toggle source
# File lib/ast/visitor.rb, line 74 def accept(visitor) visitor.visit_lvar_read_node(self) end
clone()
click to toggle source
# File lib/ast/nodes.rb, line 338 def clone return LVarReadNode.new(identifier: @identifier) end
mangled_identifier()
click to toggle source
# File lib/translator/variable_classifier_visitor.rb, line 10 def mangled_identifier if variable_kind == :lexical return Translator::Constants::LEXICAL_VAR_PREFIX + identifier.to_s else return identifier end end
to_s()
click to toggle source
# File lib/ast/printer.rb, line 72 def to_s return "[LVarReadNode: #{identifier.to_s}]" end