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

Ensure :doc=>"" field in all tags.

So the #parse method of Tag classes doesn't have to return this
empty field and maybe in the future we get rid of it altogether.
parent 50a84696
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -28,6 +28,8 @@ module JsDuck
      else
        @tags << @current_tag = {:tagname => tag, :doc => ""}
      end

      @current_tag[:doc] = "" unless @current_tag.has_key?(:doc)
    end

    # Forgets the previously parsed tag
+1 −1
Original line number Diff line number Diff line
@@ -13,7 +13,7 @@ module JsDuck::Tag

    # Parses just the name of the tag.
    def parse(p)
      {:tagname => @key, :doc => ""}
      {:tagname => @key}
    end

    # When the tag is found, its value will always be true.
+0 −1
Original line number Diff line number Diff line
@@ -11,7 +11,6 @@ module JsDuck::Tag
      {
        :tagname => :class,
        :name => p.hw && p.ident_chain,
        :doc => "",
      }
    end
  end
+0 −1
Original line number Diff line number Diff line
@@ -16,7 +16,6 @@ module JsDuck::Tag
      {
        :tagname => @key,
        :classes => p.hw && p.classname_list,
        :doc => "",
      }
    end