Commit e0a2a5d0 authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Pass file and line as single param in Doc::Parser.

Not much of a change, but at least one less instance variable.
parent 0cd67f4b
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -28,8 +28,7 @@ module JsDuck
    #
    class Parser < Doc::Scanner
      def parse(input, filename="", linenr = 0)
        @filename = filename
        @linenr = linenr
        @position = {:filename => filename, :linenr => linenr}
        @tags = []
        @input = StringScanner.new(Doc::Comment.purify(input))

@@ -95,7 +94,7 @@ module JsDuck

          skip_white
        else
          Logger.warn(:tag, "Unsupported tag: @#{name}", @filename, @linenr)
          Logger.warn(:tag, "Unsupported tag: @#{name}", @position)
          @multiline_tag[:doc] += "@"
        end
      end