lib/opal/fragment.rb
# String of javascript this fragment holds
# @return [String]
String of javascript this fragment holds
String of javascript this fragment holds
def source_map_name
      case @sexp.type
      when :top, :begin, :newline, :js_return
        nil
      when :self
        'self'
      when :module
        'module'
      when :class
        'class'
      when :int
        @sexp.children.first
      when :def
        @sexp.children.first
      when :defs
        @sexp.children[1]
      when :send
        @sexp.children[1]
      when :lvar, :lvasgn, :lvdeclare, :ivar, :ivasgn, :gvar, :cvar, :cvasgn, :gvars, :gvasgn
        @sexp.children.first
      else
      end
    end
def source_map_name case @sexp . type when :top , :begin , :newline , :js_return nil when :self 'self' when :module 'module' when :class 'class' when :int @sexp . children . first when :def @sexp . children . first when :defs @sexp . children [ 1 ] when :send @sexp . children [ 1 ] when :lvar , :lvasgn , :lvdeclare , :ivar , :ivasgn , :gvar , :cvar , :cvasgn , :gvars , :gvasgn @sexp . children . first else end end
String of javascript this fragment holds
String of javascript this fragment holds
# nil
None
String