lib/jsduck/ast.rb in jsduck-4.0.beta2 vs lib/jsduck/ast.rb in jsduck-4.0.0
- old
+ new
@@ -228,11 +228,13 @@
cls[:code_type] = :ext_define
each_pair_in_object_expression(ast["arguments"][1]) do |key, value, pair|
case key
when "extend"
- cls[:extends] = make_extends(value)
+ cls[:extends] = make_string(value)
+ when "override"
+ cls[:override] = make_string(value)
when "requires"
cls[:requires] = make_string_list(value)
when "uses"
cls[:uses] = make_string_list(value)
when "alternateClassName"
@@ -286,10 +288,10 @@
p = make_property(key, value)
cls[:members] << p if apply_autodetected(p, pair)
end
end
- def make_extends(cfg_value)
+ def make_string(cfg_value)
return nil unless cfg_value
parent = to_value(cfg_value)
return parent.is_a?(String) ? parent : nil