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

Separate private methods in EsprimaLexer.

parent 893652e2
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -17,7 +17,9 @@ module JsDuck
      merge_tokens(program["tokens"], program["comments"].find_all {|c| doc_comment?(c) })
    end

    # True if comments is a /** doc-comment */
    private

    # True if comment is a /** doc-comment */
    def doc_comment?(comment)
      comment["type"] == "Block" && !!(comment["value"] =~ /^\*/)
    end