diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-06-22 23:42:41 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-06-22 23:43:02 +0900 |
| commit | 3b783e97a9aac366a7d6e26059961ba53d5e8b20 (patch) | |
| tree | c3e6bb44007a2ed50dde73ff5e3f625ee981b990 /crates/shirabe/Cargo.toml | |
| parent | aa4e9ff27b974343beeccdd14e07e13f0e261599 (diff) | |
| download | php-shirabe-3b783e97a9aac366a7d6e26059961ba53d5e8b20.tar.gz php-shirabe-3b783e97a9aac366a7d6e26059961ba53d5e8b20.tar.zst php-shirabe-3b783e97a9aac366a7d6e26059961ba53d5e8b20.zip | |
feat(script): make originating event polymorphic via enum
Script\Event extends BaseEvent in PHP, so setOriginatingEvent accepts
both a base event and a nested Script\Event, and calculateOriginatingEvent
walks the chain via an instanceof check. The port had pinned the field to a
concrete Option<Box<BaseEvent>>, leaving calculate_originating_event as
todo!() and the nested-event test unportable.
Introduce an OriginatingEvent enum (Base/Script) to model the instanceof
tag, implement the recursive flattening, and un-ignore both originating
event tests.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/Cargo.toml')
0 files changed, 0 insertions, 0 deletions
