class SyntaxTree::YARV::Assembler::ObjectVisitor

def visit_dyna_symbol(node)

def visit_dyna_symbol(node)
  if node.parts.empty?
    :""
  else
    raise CompilationError
  end
end

def visit_string_literal(node)

def visit_string_literal(node)
  case node.parts.length
  when 0
    ""
  when 1
    raise CompilationError unless node.parts.first.is_a?(TStringContent)
    node.parts.first.value
  else
    raise CompilationError
  end
end