lib/yard/handlers/c/handler_methods.rb in yard-0.9.0 vs lib/yard/handlers/c/handler_methods.rb in yard-0.9.1
- old
+ new
@@ -73,9 +73,10 @@
def handle_attribute(var_name, name, read, write)
values = {:read => read.to_i, :write => write.to_i}
{:read => name, :write => "#{name}="}.each do |type, meth_name|
next unless values[type] > 0
obj = handle_method(:instance, var_name, meth_name, nil)
+ register_file_info(obj, statement.file, statement.line)
obj.namespace.attributes[:instance][name] ||= SymbolHash[:read => nil, :write => nil]
obj.namespace.attributes[:instance][name][type] = obj
end
end