forked from KolibriOS/kolibrios
[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:
parent
ee35eb534c
commit
01b9146608
@ -1357,12 +1357,17 @@ created_files = []
|
|||||||
|
|
||||||
class AsmElement:
|
class AsmElement:
|
||||||
def __init__(self, location, name, comment):
|
def __init__(self, location, name, comment):
|
||||||
|
global warnings
|
||||||
|
|
||||||
self.location = location
|
self.location = location
|
||||||
self.file = self.location.split(':')[0].replace('\\', '/')
|
self.file = self.location.split(':')[0].replace('\\', '/')
|
||||||
self.line = self.location.split(':')[1]
|
self.line = self.location.split(':')[1]
|
||||||
self.name = name
|
self.name = name
|
||||||
self.comment = comment
|
self.comment = comment
|
||||||
|
|
||||||
|
if self.comment == '':
|
||||||
|
warnings += f'{self.location}: Undocumented element\n'
|
||||||
|
|
||||||
def dump(self):
|
def dump(self):
|
||||||
print(f"{self.comment}")
|
print(f"{self.comment}")
|
||||||
print(f"{self.location}: {self.name}")
|
print(f"{self.location}: {self.name}")
|
||||||
|
Loading…
Reference in New Issue
Block a user