Commit f4dc41a
feat: propagate invocation-site names for dynamic components in debugRenderTree
For dynamic component invocations like `<this.Foo>` and `<@Greeting>`,
the debug render tree now shows the invocation-site name instead of
'(unknown template-only component)'.
This works by extracting the Reference's debugLabel in
VM_RESOLVE_DYNAMIC_COMPONENT_OP and VM_RESOLVE_CURRIED_COMPONENT_OP,
and setting it as the ComponentDefinition's debugName when no name
is already present.
- `<this.Foo>` → name: "Foo"
- `<@Greeting>` → name: "Greeting"
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 87d55e6 commit f4dc41a
2 files changed
Lines changed: 24 additions & 2 deletions
File tree
- packages
- @glimmer-workspace/integration-tests/test
- @glimmer/runtime/lib/compiled/opcodes
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
| 188 | + | |
188 | 189 | | |
189 | 190 | | |
190 | | - | |
| 191 | + | |
191 | 192 | | |
192 | 193 | | |
193 | 194 | | |
| |||
Lines changed: 22 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
| 157 | + | |
157 | 158 | | |
158 | | - | |
| 159 | + | |
159 | 160 | | |
160 | 161 | | |
161 | 162 | | |
| |||
182 | 183 | | |
183 | 184 | | |
184 | 185 | | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
185 | 194 | | |
186 | 195 | | |
187 | 196 | | |
| |||
217 | 226 | | |
218 | 227 | | |
219 | 228 | | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
220 | 241 | | |
221 | 242 | | |
222 | 243 | | |
| |||
0 commit comments