[asmxygen] Warn if an element has no comment

git-svn-id: svn://kolibrios.org@8980 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Magomed Kostoev (mkostoevr) 2021-06-29 19:47:40 +00:00
parent ee35eb534c
commit 01b9146608

View File

@ -1357,12 +1357,17 @@ created_files = []
class AsmElement:
def __init__(self, location, name, comment):
global warnings
self.location = location
self.file = self.location.split(':')[0].replace('\\', '/')
self.line = self.location.split(':')[1]
self.name = name
self.comment = comment
if self.comment == '':
warnings += f'{self.location}: Undocumented element\n'
def dump(self):
print(f"{self.comment}")
print(f"{self.location}: {self.name}")