Skip to content

Commit

Permalink
Update JavaDoc comments generation
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximPlusov committed Jul 16, 2023
1 parent f3f7c83 commit 198113f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 89 deletions.
84 changes: 0 additions & 84 deletions RELEASE.md

This file was deleted.

6 changes: 3 additions & 3 deletions org.verapdf/src/org/verapdf/Model.xtext
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Model:
;

Entity:
(comment = COMMENT)*
(comment += COMMENT)*
'type' name = ID ('extends' superType = [Entity | QualifiedName])? '{'
(attributes += Attribute)*
'}'
Expand All @@ -20,12 +20,12 @@ Attribute:
;

Property:
(comment = COMMENT)*
(comment += COMMENT)*
'property' name = ID ':' type = ('String' | 'Integer' | 'Decimal' | 'Boolean')';'
;

Link:
(comment = COMMENT)*
(comment += COMMENT)*
'link' name = ID ':' type = [Entity | QualifiedName] (any ?= '*' | oneOrMore ?= '+' | zeroOrOne ?= '?')?';'
;

Expand Down
8 changes: 6 additions & 2 deletions org.verapdf/src/org/verapdf/generator/ModelGenerator.xtend
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,12 @@ class ModelGenerator implements IGenerator {
}
}
def toJavaDocComment (String comment) '''
/** «comment.substring(1)» */
def toJavaDocComment (List<String> comments) '''
/**
«FOR comment : comments»
*«comment.substring(1)»
«ENDFOR»
*/
'''
def toInterfaceName (String name) '''I«name»'''
Expand Down

0 comments on commit 198113f

Please sign in to comment.