Commit 66ce7c58 authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Rename Tag::Tag#parse to #parse_doc.

So it's clear that it's parsing the documentation.
This way it's also clear that it goes along with the #process_doc
method.
parent eefc22eb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -85,7 +85,7 @@ module JsDuck
        elsif tag = TagRegistry.get_by_pattern(name)
          match(/\w+/)

          tags = tag.parse(self)
          tags = tag.parse_doc(self)
          if tags.is_a?(Hash)
            add_tag(tags)
          elsif tags.is_a?(Array)
+1 −1
Original line number Diff line number Diff line
@@ -13,7 +13,7 @@ module JsDuck::Tag
    # For backwards compatibility decide whether the @alias was used
    # as @inheritdoc (@alias used to have the meaning of @inheritdoc
    # before) or as a real Ext4 style alias definition.
    def parse(p)
    def parse_doc(p)
      if p.look(/\s+([\w.]+)?#\w+/)
        parse_as_inheritdoc(p)
      else
+1 −1
Original line number Diff line number Diff line
@@ -9,7 +9,7 @@ module JsDuck::Tag
      @html_position = :top
    end

    def parse(p)
    def parse_doc(p)
      {
        :tagname => :aside,
        :type => aside_type(p),
+1 −1
Original line number Diff line number Diff line
@@ -8,7 +8,7 @@ module JsDuck::Tag

    # @author Name of Author <email@example.com> ...
    # Everything until the end of line gets just ignored.
    def parse(p)
    def parse_doc(p)
      p.match(/.*$/)
    end
  end
+1 −1
Original line number Diff line number Diff line
@@ -12,7 +12,7 @@ module JsDuck::Tag
    end

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

Loading