You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Paul King (Jira)" <ji...@apache.org> on 2019/11/24 02:45:02 UTC
[jira] [Closed] (GROOVY-8185) Change Groovydoc processing to
support antlr4 grammar including getting comments from AST
[ https://issues.apache.org/jira/browse/GROOVY-8185?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul King closed GROOVY-8185.
-----------------------------
> Change Groovydoc processing to support antlr4 grammar including getting comments from AST
> ------------------------------------------------------------------------------------------
>
> Key: GROOVY-8185
> URL: https://issues.apache.org/jira/browse/GROOVY-8185
> Project: Groovy
> Issue Type: Improvement
> Components: GroovyDoc
> Reporter: Paul King
> Assignee: Paul King
> Priority: Major
> Fix For: 3.0.0-rc-1
>
>
> 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.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)