lib/jsduck/lint.rb in jsduck-3.0.pre2 vs lib/jsduck/lint.rb in jsduck-3.0.pre3
- old
+ new
@@ -73,11 +73,12 @@
def each_member(&block)
@relations.each {|cls| cls.each_member(&block) }
end
# Prints warning + filename and linenumber from doc-context
- def warn(msg, context)
- Logger.instance.warn(msg + " in #{context[:filename]} line #{context[:linenr]}")
+ def warn(msg, member)
+ context = member[:files][0]
+ Logger.instance.warn(msg, context[:filename], context[:linenr])
end
end
end