Unexpected match of structures
- Dominant language
- JavaScript
- Stars
- 198
- Forks
- 18
- PR merge metrics
- No merged PRs in 30d
Description
This structure:
```
fill(_);
if ($ifCond) {
fill(_);
}
rect(_);
```
matches true to:
```
if (mouseIsPressed) {
fill(255, 0, 0);
}
fill(0, 255, 68);
rect(0, 0, 400, 200);
```
I replicated on http://khan.github.io/structuredjs/, which I recently pushed, so it should be up to date.
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the reported match at http://khan.github.io/structuredjs/ using the two code snippets in the issue. Trace the structural-matching entry point to determine why the example is considered a match, then add or update coverage for the case and verify that the resulting behavior matches the documented expectation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100