Add comment gen for array type

This commit is contained in:
Joey Yakimowich-Payne 2020-04-26 11:07:30 -06:00 committed by genotrance
commit 789af2b5cc

View file

@ -1017,6 +1017,7 @@ proc addTypeArray(gState: State, node: TSNode) =
# node[start] = identifier = type name
(tname, _, info) = gState.getNameInfo(node[start].getAtom(), nskType, parent = "addTypeArray")
tident = gState.getIdent(tname, info, exported = false)
commentNodes = gState.getPrevCommentNodes(node)
# Could have multiple types, comma separated
for i in start+1 ..< node.len:
@ -1050,6 +1051,7 @@ proc addTypeArray(gState: State, node: TSNode) =
# )
# )
typeDef.comment = gState.getCommentsStr(commentNodes)
# nkTypeSection.add
gState.typeSection.add typeDef