Bläddra i källkod

Rename modules 'namespaces'

tags/v1.0^2
Benjamin Attal 10 år sedan
förälder
incheckning
12ad10bad1
1 ändrade filer med 5 tillägg och 5 borttagningar
  1. +5
    -5
      parsers/ruby/lib/parser.rb

+ 5
- 5
parsers/ruby/lib/parser.rb Visa fil

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

module_hash = Hash.new {
ns_hash = Hash.new {
|hash, key|
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
@symbols = {
namespaces: module_hash,
namespaces: ns_hash,
classes: class_hash,
functions: function_hash,
vars: var_hash


Laddar…
Avbryt
Spara