You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: x_string.rb
    path of file: ./repos/opal/lib/opal/nodes
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module Opal
  module Nodes
    class XStringNode < Base
      handle :xstr

      def compile
        if compiler.backtick_javascript_or_warn?
          compile_javascript
        else
          compile_send
    
    
      def extract_last_value(last_child)
        last_value = last_child.loc.expression.source.rstrip

        scope.self if last_value.include? 'self'

        if (@returning || expr?) && last_value.end_with?(';')
          compiler.warning(
            'Removed semicolon ending x-string expression, interpreted as unintentional',
            last_child.line,
          )
          last_value = last_value[0..-2]
        end