Skip to content

Commit 4483c06

Browse files
committed
Add filename and is_sentinel in ASM
Now ASM blocks stores the filename where they were declared and whether they are "sentinel" (automagic) asm regions or not.
1 parent b930655 commit 4483c06

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/symbols/asm.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
class SymbolASM(Symbol):
1616
""" Defines an ASM sentence
1717
"""
18-
def __init__(self, asm, lineno):
19-
super(SymbolASM, self).__init__()
18+
def __init__(self, asm: str, lineno: int, filename: str, is_sentinel: bool = False):
19+
super().__init__()
2020
self.asm = asm
2121
self.lineno = lineno
22+
self.filename = filename
23+
self.is_sentinel = is_sentinel

0 commit comments

Comments
 (0)