Skip to content
This repository has been archived by the owner on Nov 2, 2019. It is now read-only.

Commit

Permalink
Fix multinames.
Browse files Browse the repository at this point in the history
  • Loading branch information
whitequark committed Feb 15, 2012
1 parent 62f9853 commit a1a8420
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/furnace-avm2/abc/metadata/multiname_kind_qname.rb
Expand Up @@ -31,7 +31,7 @@ def to_astpat(type=:qname)
when :qname
[ :q, (ns.name if ns), name ].compact
when :multiname
[ :m, [ ns.name ], name ]
[ :m, [ :set, ns.name ], name ]
else
raise "unknown astpat type #{type}"
end
Expand Down
2 changes: 1 addition & 1 deletion lib/furnace-avm2/abc/metadata/ns_set_info.rb
Expand Up @@ -7,7 +7,7 @@ def to_s
end

def to_astlet
ns.map(&:name).uniq
AST::Node.new(:set, ns.map(&:name).uniq)
end
end
end
2 changes: 1 addition & 1 deletion lib/furnace-avm2/version.rb
@@ -1,3 +1,3 @@
module Furnace::AVM2
VERSION = "0.0.8"
end
end

0 comments on commit a1a8420

Please sign in to comment.