Browse Source

Ruby: use 'namespaces' instead of 'modules'.

tags/v1.0^2
Ben Kurtovic 10 years ago
parent
commit
8f39ce2f59
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      parsers/ruby/lib/parser.rb

+ 2
- 2
parsers/ruby/lib/parser.rb View File

@@ -35,7 +35,7 @@ module Bitshift


@require_empty = false @require_empty = false
@symbols = { @symbols = {
modules: module_hash,
namespaces: module_hash,
classes: class_hash, classes: class_hash,
functions: function_hash, functions: function_hash,
vars: var_hash vars: var_hash
@@ -71,7 +71,7 @@ module Bitshift
while (name = exp.shift).is_a? Sexp while (name = exp.shift).is_a? Sexp
end end


symbols[:modules][name][:assignments] << pos
symbols[:namespaces][name][:assignments] << pos
exp.each_sexp {|s| process(s)} exp.each_sexp {|s| process(s)}
return exp.clear return exp.clear
end end


Loading…
Cancel
Save