Rev 9028 | Rev 9033 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 9028 | Rev 9030 | ||
---|---|---|---|
Line 1370... | Line 1370... | ||
1370 | 1370 | ||
1371 | if self.comment == '': |
1371 | if self.comment == '': |
Line 1372... | Line 1372... | ||
1372 | warnings += f'{self.location}: Undocumented element\n' |
1372 | warnings += f'{self.location}: Undocumented element\n' |
- | 1373 | ||
1373 | 1374 | def dump(self): |
|
1374 | def dump(self): |
- | |
Line 1375... | Line 1375... | ||
1375 | print(f"{self.comment}") |
1375 | print(f"\n{self.location}: {self.name}") |
1376 | print(f"{self.location}: {self.name}") |
1376 | print(f"{self.comment}") |
1377 | 1377 | ||
1378 | def emit(self, dest, doxycomment = '', declaration = ''): |
1378 | def emit(self, dest, doxycomment = '', declaration = ''): |
Line 1418... | Line 1418... | ||
1418 | self.type = type |
1418 | self.type = type |
1419 | self.init = init |
1419 | self.init = init |
Line 1420... | Line 1420... | ||
1420 | 1420 | ||
1421 | def dump(self): |
1421 | def dump(self): |
1422 | super().dump() |
1422 | super().dump() |
Line 1423... | Line 1423... | ||
1423 | print(f"Variable") |
1423 | print(f"(Variable)\n---") |
1424 | 1424 | ||
1425 | def emit(self, dest): |
1425 | def emit(self, dest): |
1426 | # Build doxycomment specific for the variable |
1426 | # Build doxycomment specific for the variable |
Line 1444... | Line 1444... | ||
1444 | self.args = args |
1444 | self.args = args |
1445 | self.used_regs = used_regs |
1445 | self.used_regs = used_regs |
Line 1446... | Line 1446... | ||
1446 | 1446 | ||
1447 | def dump(self): |
1447 | def dump(self): |
1448 | super().dump() |
1448 | super().dump() |
Line 1449... | Line 1449... | ||
1449 | print(f"Function") |
1449 | print(f"(Function)\n---") |
1450 | 1450 | ||
1451 | def emit(self, dest): |
1451 | def emit(self, dest): |
1452 | # Build doxycomment specific for the variable |
1452 | # Build doxycomment specific for the variable |
Line 1492... | Line 1492... | ||
1492 | def __init__(self, location, name, comment): |
1492 | def __init__(self, location, name, comment): |
1493 | super().__init__(location, name, comment) |
1493 | super().__init__(location, name, comment) |
Line 1494... | Line 1494... | ||
1494 | 1494 | ||
1495 | def dump(self): |
1495 | def dump(self): |
1496 | super().dump() |
1496 | super().dump() |
Line 1497... | Line 1497... | ||
1497 | print(f"Label") |
1497 | print(f"(Label)\n---") |
1498 | 1498 | ||
1499 | def emit(self, dest): |
1499 | def emit(self, dest): |
1500 | # Build doxycomment specific for the variable |
1500 | # Build doxycomment specific for the variable |
Line 1513... | Line 1513... | ||
1513 | super().__init__(location, name, comment) |
1513 | super().__init__(location, name, comment) |
1514 | self.args = args |
1514 | self.args = args |
Line 1515... | Line 1515... | ||
1515 | 1515 | ||
1516 | def dump(self): |
1516 | def dump(self): |
1517 | super().dump() |
1517 | super().dump() |
1518 | print(f"Macro") |
- | |
Line 1519... | Line 1518... | ||
1519 | print(f"Parameters: {self.args}") |
1518 | print(f"(Macro)\n---") |
1520 | 1519 | ||
1521 | def emit(self, dest): |
1520 | def emit(self, dest): |
1522 | # Construct arg list without '['s, ']'s and '*'s |
1521 | # Construct arg list without '['s, ']'s and '*'s |
Line 1547... | Line 1546... | ||
1547 | super().__init__(location, name, comment) |
1546 | super().__init__(location, name, comment) |
1548 | self.members = members |
1547 | self.members = members |
Line 1549... | Line 1548... | ||
1549 | 1548 | ||
1550 | def dump(self): |
1549 | def dump(self): |
1551 | super().dump() |
1550 | super().dump() |
Line 1552... | Line 1551... | ||
1552 | print(f"Struct") |
1551 | print(f"(Struct)\n---") |
1553 | 1552 | ||
1554 | def emit(self, dest): |
1553 | def emit(self, dest): |
1555 | # Build doxycomment |
1554 | # Build doxycomment |
Line 1572... | Line 1571... | ||
1572 | super().__init__(location, name, comment) |
1571 | super().__init__(location, name, comment) |
1573 | self.members = members |
1572 | self.members = members |
Line 1574... | Line 1573... | ||
1574 | 1573 | ||
1575 | def dump(self): |
1574 | def dump(self): |
1576 | super().dump() |
1575 | super().dump() |
Line 1577... | Line 1576... | ||
1577 | print(f"Union") |
1576 | print(f"(Union)\n---") |
1578 | 1577 | ||
1579 | def emit(self, dest): |
1578 | def emit(self, dest): |
1580 | # Build doxycomment |
1579 | # Build doxycomment |