Skip to content

Commit

Permalink
fix rewritten_source for Symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
flyerhzm committed Aug 16, 2014
1 parent 6b8fb01 commit a584b0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/synvert/core/node_ext.rb
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ def rewritten_source(code)
source = evaluated.first.loc.expression.source_buffer.source
source[evaluated.first.loc.expression.begin_pos...evaluated.last.loc.expression.end_pos]
end
when String
when String, Symbol
evaluated
when NilClass
'nil'
Expand Down

0 comments on commit a584b0f

Please sign in to comment.