Whole file
terryyin/lizard
The author described this change as “Fix dot-property field assignment swallowing next class method”. It counts as a record because the checks below fail on the code as it stood at 57e1ac296 and pass on a19185f73, with nothing else changed between the two runs.
Projectterryyin/lizard
Fix saved2026-04-22
Sharing licenceMIT · LICENSE.txt
Change size+1 −0
What the code was meant to do, written into the code itself as a save note
Fix dot-property field assignment swallowing next class method
The change
| 348 | 348 | self._static_seen = False | |
| 349 | 349 | self._async_seen = False | |
| 350 | 350 | self._in_prop_value = False | |
| 351 | + | self._prev_token = '' | |
| 351 | 352 | ||
| 352 | 353 | if token == '`': | |
| 353 | 354 | self.next(self._state_template_literal) |
The check that tells the two apart
fail→pass·test/test_languages/testES6.py::Test_ES6_dot_field_assignment::test_chained_dot_field_assignment
fail→pass·test/test_languages/testES6.py::Test_ES6_dot_field_assignment::test_dot_field_assignment
fail→pass·test/test_languages/testES6.py::Test_ES6_dot_field_assignment::test_multiple_dot_field_assignments
Check file test/test_languages/testES6.py, taken without changes from the fix and copied onto the older code, so the exact same check runs against both versions.
Origin and history
The code before it57e1ac296e2b17b86cd9b5f10cdd56878ced6157
Broken version dated2026-04-22
Modulelizard_languages.typescript
Units changedTypeScriptStates
Fingerprintbc9515df977796e5
Checked2026-08-18 by goldset/0.1
Every field above is generated by our program. None of it is written by hand.
Other bugs found in terryyin/lizard
- 2026-08-08fix(java): do not report control structures as methods
- 2026-07-02HalsteadClassifier
- 2026-07-02fix(csv): emit columns for extensions with multiple FUNCTION_INFO fields
- 2026-06-15fix(golike): register generic functions with [...] type params
- 2026-06-15fix(java): enhance parsing of generic and qualified type names in anonymous classes
- 2026-06-11fix(script): stop a '#' comment continuing past a trailing backslash (#317)