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>
'''
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»