Mahenoor Salat
3289624d0c
fix(parsers): clean up and refactor asm-parser-ewavr ( #8957 )
...
## Summary
Fixes #4689
Refactors `lib/parsers/asm-parser-ewavr.ts` to clean up logic and
resolve stale TODO item:
- Extracts `getFilenameFromComment` and `getLineNumberFromComment`
helper functions into private instance methods on `AsmEWAVRParser`,
avoiding function allocation on every line per assembly parse.
- Fixes `currentFile === undefined` check (since `currentFile` is
initialized as `string | null` = `null`).
- Verified all unit tests pass (`test/ewavr-asm-parser-tests.ts`).
## Testing
Ran local unit tests:
```bash
npm test -- test/ewavr-asm-parser-tests.ts test/vc-asm-parser-tests.ts
```
Result: 11 tests passed in 2 test files.
2026-07-29 15:52:49 +02:00
..
2026-07-20 21:37:49 +01:00
2026-05-08 10:50:09 -04:00
2025-10-28 18:01:23 +01:00
2026-07-02 19:13:21 +01:00
2026-02-01 20:50:46 -06:00
2026-06-04 23:41:19 +02:00
2025-09-12 00:05:43 +02:00
2026-07-27 17:35:11 +02:00
2026-06-30 22:26:08 +03:00
2026-05-02 08:05:38 -05:00
2026-07-02 19:13:21 +01:00
2026-07-02 18:26:35 +01:00
2026-07-27 18:54:17 +02:00
2025-02-02 17:54:31 +00:00
2026-07-27 18:54:17 +02:00
2026-07-02 19:13:21 +01:00
2026-07-29 15:52:49 +02:00
2026-07-02 19:13:21 +01:00
2026-02-01 20:50:46 -06:00
2026-06-14 22:38:23 +01:00
2026-07-27 18:54:17 +02:00
2026-07-02 18:26:35 +01:00
2025-09-29 22:21:51 +02:00
2026-02-01 20:50:46 -06:00
2025-07-28 10:34:46 -05:00
2026-02-01 20:50:46 -06:00
2026-07-29 15:46:52 +02:00
2025-02-08 16:12:40 +01:00
2025-02-02 17:54:31 +00:00
2026-06-26 22:10:36 +03:00
2026-06-11 23:02:35 +01:00
2026-02-01 20:50:46 -06:00
2026-07-02 22:14:19 +01:00
2025-09-27 10:17:55 +03:00
2026-05-23 14:47:16 +03:00
2026-02-01 20:50:46 -06:00
2026-05-09 17:14:30 -05:00
2023-06-19 22:13:15 -04:00
2025-02-02 17:54:31 +00:00
2026-07-02 22:14:19 +01:00
2026-02-01 20:50:46 -06:00
2026-02-22 17:25:36 -06:00
2026-02-01 20:50:46 -06:00
2023-06-28 20:13:10 -04:00
2025-02-02 17:54:31 +00:00
2025-05-20 17:53:24 -05:00
2026-07-27 17:35:11 +02:00
2025-10-28 09:44:51 +01:00
2026-05-23 14:47:16 +03:00
2026-05-23 14:47:16 +03:00
2025-02-02 17:54:31 +00:00
2026-03-11 21:40:54 +01:00
2026-07-14 08:46:10 +01:00
2026-05-07 19:26:03 -04:00
2025-09-08 22:07:47 +02:00
2026-02-01 20:50:46 -06:00
2026-02-01 20:50:46 -06:00
2024-12-08 00:59:58 +09:00
2024-03-05 20:11:28 -06:00
2025-02-02 17:54:31 +00:00
2025-09-12 14:23:49 -05:00
2026-02-01 20:50:46 -06:00
2025-02-02 17:54:31 +00:00
2026-06-14 20:11:35 +01:00
2026-02-02 21:31:18 -06:00
2026-07-27 18:54:17 +02:00
2026-07-14 15:30:54 +01:00