Commit f1bc4f4
Add callable_overrides for intercepting struct __call__ during compilation
Enables external callers (e.g., Therapy.jl) to override how callable struct
types compile. Maps DataType → (receiver_js, args_js) → JS string. Also adds
captured_vars parameter to compile() for direct closure compilation.
Used by Therapy to map SignalGetter/SignalSetter calls to JS variable ops
without compiling the server-side reactive plumbing.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 7d7ed24 commit f1bc4f4
2 files changed
Lines changed: 28 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
767 | 767 | | |
768 | 768 | | |
769 | 769 | | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
770 | 784 | | |
771 | 785 | | |
772 | 786 | | |
| |||
1073 | 1087 | | |
1074 | 1088 | | |
1075 | 1089 | | |
| 1090 | + | |
1076 | 1091 | | |
1077 | 1092 | | |
1078 | 1093 | | |
| |||
1413 | 1428 | | |
1414 | 1429 | | |
1415 | 1430 | | |
| 1431 | + | |
| 1432 | + | |
1416 | 1433 | | |
1417 | 1434 | | |
1418 | 1435 | | |
1419 | 1436 | | |
1420 | 1437 | | |
| 1438 | + | |
| 1439 | + | |
| 1440 | + | |
| 1441 | + | |
| 1442 | + | |
| 1443 | + | |
| 1444 | + | |
| 1445 | + | |
| 1446 | + | |
1421 | 1447 | | |
1422 | 1448 | | |
1423 | 1449 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
| 65 | + | |
64 | 66 | | |
65 | 67 | | |
66 | 68 | | |
| |||
0 commit comments