aboutsummaryrefslogtreecommitdiffstats
path: root/src/asm_pass2.py
diff options
context:
space:
mode:
authorJan Tuomi <jans.tuomi@gmail.com>2023-04-11 17:30:08 +0300
committerJan Tuomi <jans.tuomi@gmail.com>2023-04-11 18:41:56 +0300
commita38b64e1a1bf14dd9c42629f219b0e422aebe52a (patch)
tree8cc08f712ddd3f8573d2b7c8aa243fcd1b6e52df /src/asm_pass2.py
parente240ef3e9a2854cfe390b47fb0b3d519c095193b (diff)
Add hover and go to definition to extension
Diffstat (limited to 'src/asm_pass2.py')
-rw-r--r--src/asm_pass2.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/asm_pass2.py b/src/asm_pass2.py
index e7f48ac..7272dcf 100644
--- a/src/asm_pass2.py
+++ b/src/asm_pass2.py
@@ -6,6 +6,7 @@ from asm_pass1 import *
@dataclass
class Result2Line:
line_num: int
+ src_file: str
parts: list[str]
original_parts: list[str]
@@ -30,6 +31,7 @@ def pass_2(result1: Result1) -> Result2:
for (idx, parts) in enumerate(output):
result_lines.append(Result2Line(
line_num=line.line_num,
+ src_file=line.src_file,
parts=parts,
original_parts=line.parts if idx == 0 else ["..."]
))