Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-8185

Change Groovydoc processing to support antlr4 grammar including getting comments from AST

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0-rc-1
    • GroovyDoc
    • None

    Description

      The new Parrot parser (currently on the master branch) supports capturing comments within the AST. Groovydoc should be adapted to utilise that capability. Currently, in SimpleGroovyClassDocAssembler#getJavaDocCommentsBeforeNode(), a crude regexp is used to extract the comment out from the source based on the relative position of a known AST node. Instead, with the new parser, we can simply extract it from the AST.

      Attachments

        Activity

          People

            paulk Paul King
            paulk Paul King
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: