lib/opal/nodes/x_string.rb
# A case for manually created :js_return statement in Compiler#returns
# Since we need to take original source of :str we have to use raw source
# so we need to combine "return" with "raw_source"
A case for manually created :js_return statement in Compiler#returns
Since we need to take original source of :str we have to use raw source
so we need to combine "return" with "raw_source"
A case for manually created : js_return statement in Compiler#returns Since we need to take original source of : str we have to use raw source so we need to combine " return " with " raw_source "
def unpack_return(children)
        first_child = children.first
        @returning  = false
        if first_child.type == :js_return
          @returning = true
          children = first_child.children
        end
        children
      end
def unpack_return ( children ) first_child = children . first @returning = false if first_child . type == :js_return @returning = true children = first_child . children end children end
A case for manually created :js_return statement in Compiler#returns
Since we need to take original source of :str we have to use raw source
so we need to combine "return" with "raw_source"
A case for manually created : js_return statement in Compiler#returns Since we need to take original source of : str we have to use raw source so we need to combine " return " with " raw_source "
children
<not_specific>