Commit c199368
authored
* fix(parity): resolve C# static receiver calls in WASM engine (#1372)
The WASM resolver had no fallback for calls where the receiver is a class
name used directly (e.g. `Validators.IsValidEmail(...)`). Static class names
never appear in variable declarations, so typeMap has no entry for them.
The old code fell through and returned an empty target set.
Add a fallback in resolveByMethodOrGlobal: when typeName is null (no typeMap
entry for the receiver), try looking up `${receiver}.${method}` directly in
the symbol DB. This catches static dispatch where the receiver IS the class
name, matching what the native engine already produces. The kind='method'
filter keeps it scoped to genuine method calls.
Fixes build-parity test failures for the csharp Repository fixture:
- Program.Main → Validators.IsValidEmail
- Program.RunWithValidation → Validators.ValidateUser
- UserService.AddUser → Validators.ValidateUser
* fix(resolver): use effectiveReceiver in static dispatch fallback (#1390)
* feat(resolver): resolve iteration-callback edges for for-of, Set, and Array.from (JS)
Fixes more1 jelly-micro benchmark from 0% → 100% recall (10/10 named edges).
The PTS resolution for for-of, Set+for-of, Array.from, and spread patterns was
already fully implemented. The 0% recall was caused by a naming mismatch in the
fixture: _iterPlain/_iterSet (underscore-prefixed) vs the expected-edges.json
which referenced iterPlain/iterSet (without prefix). Renaming the fixture
functions to match the expected edges exposes all four PTS patterns resolving
correctly.
Closes #1378
* Revert "feat(resolver): resolve iteration-callback edges for for-of, Set, and Array.from (JS)"
This reverts commit 70236a5.
* test(1372): initialise edges to [] for clearer assertion failures
* test(integration): pin prototype-method-resolution test to WASM engine
The test was using auto engine (native-preferred), causing it to pick the
published npm native binary which predates the prototype-method fixes.
WASM correctly extracts Dog.prototype.bark and resolves all call edges.
Fixes #1381
* fix: remove duplicate static-receiver fallback superseded by main's broader version
1 parent 0fe4bfc commit c199368
2 files changed
Lines changed: 106 additions & 1 deletion
File tree
- tests/integration
Lines changed: 105 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
0 commit comments