Skip to content

Commit

Permalink
Remove old source map comments from parser
Browse files Browse the repository at this point in the history
  • Loading branch information
adambeynon committed Aug 2, 2013
1 parent 81249b0 commit b276a9d
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions lib/opal/parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,7 @@ def parse(source, options = {})

@fragments = self.top(@sexp).flatten

@fragments.unshift f(source_map_comment)
@fragments.unshift f(version_comment)
@fragments.unshift f(file_comment)

@result = @fragments.map(&:code).join('')
end
Expand All @@ -104,14 +102,6 @@ def version_comment
"/* Generated by Opal #{Opal::VERSION} */\n"
end

def source_map_comment
@source_map ? "//@ sourceMappingURL=/__opal_source_maps__/#{@file}.js.map\n" : ''
end

def file_comment
@source_map ? "/*-file:#{@source_file}-*/\n" : ''
end

def source_map
# TODO: lazily generate sourcemap
raise "Parser#source_map not yet implemented"
Expand Down

0 comments on commit b276a9d

Please sign in to comment.