소스 검색

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

tags/v1.0^2
Ben Kurtovic 10 년 전
부모
커밋
8f39ce2f59
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. +2
    -2
      parsers/ruby/lib/parser.rb

+ 2
- 2
parsers/ruby/lib/parser.rb 파일 보기

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

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

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


불러오는 중...
취소
저장