Browse Source

Rename modules 'namespaces'

tags/v1.0^2
Benjamin Attal 10 years ago
parent
commit
12ad10bad1
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      parsers/ruby/lib/parser.rb

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

@@ -25,17 +25,17 @@ module Bitshift
def initialize(tree) def initialize(tree)
super() super()


module_hash = Hash.new {
ns_hash = Hash.new {
|hash, key| |hash, key|
hash[key] = { assignments: [], uses: [] } hash[key] = { assignments: [], uses: [] }
} }
class_hash = module_hash.clone
function_hash = module_hash.clone
var_hash = module_hash.clone
class_hash = ns_hash.clone
function_hash = ns_hash.clone
var_hash = ns_hash.clone


@require_empty = false @require_empty = false
@symbols = { @symbols = {
namespaces: module_hash,
namespaces: ns_hash,
classes: class_hash, classes: class_hash,
functions: function_hash, functions: function_hash,
vars: var_hash vars: var_hash


Loading…
Cancel
Save