Skip to content

Commit

Permalink
Added section level information #12
Browse files Browse the repository at this point in the history
  • Loading branch information
mugdhadhole1 committed Jul 18, 2024
1 parent eeabc06 commit 5583c04
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions trlc/ast.py
Original file line number Diff line number Diff line change
Expand Up @@ -3094,10 +3094,10 @@ def iter_record_objects_by_section(self):
if record_object.section:
self.section_names = record_object.section
if len(self.section_names) > 0:
for i in range(len(self.section_names)):
if self.section_names[i].name not in section_dictionary.keys():
section_dictionary.update({self.section_names[i].name: True})
yield self.section_names[i].name
for level in range(len(self.section_names)):
if self.section_names[level].name not in section_dictionary.keys():
section_dictionary.update({self.section_names[level].name: True})
yield self.section_names[level].name, level
yield record_object.name
else:
yield record_object.name
Expand Down

0 comments on commit 5583c04

Please sign in to comment.