key statement should be terminated by a semicolon and it should be
emitted only if the key definition is really present.
Change-Id: I499b697be586d5cf92149a14a8ca763ba2272816
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit
d816769c0b68a69653478b724d46dc04cfb4eb0c)
'''
list «listSchemaNode.getQName.localName» {
- key «FOR listKey : listSchemaNode.keyDefinition SEPARATOR " "»"«listKey.localName»"
- «ENDFOR»
+ «IF !listSchemaNode.keyDefinition.empty»
+ key «FOR listKey : listSchemaNode.keyDefinition SEPARATOR " "»"«listKey.localName»"«ENDFOR»;
+ «ENDIF»
«IF !listSchemaNode.childNodes.nullOrEmpty»
«writeDataSchemaNodes(listSchemaNode.childNodes)»
«ENDIF»