Repository navigation
Commit 28520db
Carry the closure body walk's gathered statements on ProcessClosureResult
processClosureNode() already sees every return, yield and execution end of the
closure body on the scope they occur on. Record the statement-scope pairs and
carry them - together with the impure points pre-merged in getClosureType()
order - on ProcessClosureResult, so a closure type can later be built from the
single walk instead of walking the body again.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DaBZjgksga4c5s6Q9FniY71 parent 369bfdf commit 28520db
2 files changed
Lines changed: 75 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3038 | 3038 | | |
3039 | 3039 | | |
3040 | 3040 | | |
| 3041 | + | |
3041 | 3042 | | |
| 3043 | + | |
3042 | 3044 | | |
3043 | 3045 | | |
3044 | | - | |
| 3046 | + | |
3045 | 3047 | | |
3046 | 3048 | | |
3047 | 3049 | | |
| |||
3066 | 3068 | | |
3067 | 3069 | | |
3068 | 3070 | | |
| 3071 | + | |
3069 | 3072 | | |
3070 | 3073 | | |
3071 | 3074 | | |
3072 | 3075 | | |
3073 | 3076 | | |
3074 | 3077 | | |
| 3078 | + | |
3075 | 3079 | | |
3076 | 3080 | | |
3077 | 3081 | | |
| |||
3086 | 3090 | | |
3087 | 3091 | | |
3088 | 3092 | | |
3089 | | - | |
| 3093 | + | |
| 3094 | + | |
| 3095 | + | |
| 3096 | + | |
| 3097 | + | |
| 3098 | + | |
| 3099 | + | |
| 3100 | + | |
| 3101 | + | |
| 3102 | + | |
3090 | 3103 | | |
3091 | 3104 | | |
3092 | 3105 | | |
| |||
3136 | 3149 | | |
3137 | 3150 | | |
3138 | 3151 | | |
3139 | | - | |
| 3152 | + | |
| 3153 | + | |
| 3154 | + | |
| 3155 | + | |
| 3156 | + | |
| 3157 | + | |
| 3158 | + | |
| 3159 | + | |
| 3160 | + | |
| 3161 | + | |
| 3162 | + | |
| 3163 | + | |
3140 | 3164 | | |
3141 | 3165 | | |
3142 | 3166 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
6 | 10 | | |
7 | 11 | | |
8 | 12 | | |
| |||
12 | 16 | | |
13 | 17 | | |
14 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
15 | 23 | | |
16 | 24 | | |
17 | 25 | | |
18 | 26 | | |
19 | 27 | | |
20 | 28 | | |
21 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
22 | 34 | | |
23 | 35 | | |
24 | 36 | | |
| |||
63 | 75 | | |
64 | 76 | | |
65 | 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 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
66 | 114 | | |
0 commit comments