reflector library

Zero-overhead diagnostic reflector and LPDAG topology inspection suite.

package:blooming/reflector.dart provides low-level reflection interfaces and diagnostic data snapshot handles used by Flutter DevTools (package:blooming_devtools), VM Service RPC extensions, and topological verification suites.

Core Diagnostic Capabilities

  1. LpdagReflector: Diagnostic interface for any reactive LPDAG vertex (sources, derivations, sinks, resources, tethers).
  2. BloomReflector: Specialized reactive reflector exposing the 3-state FSM (BloomState), live payload, and point-in-time snapshots.
  3. BloomDebugSnapshot: Immutable, serializable diagnostic record capturing node metadata, version, active subscribers, and payload.
  4. LpdagStatusReflectorExtension: Extension getter providing zero-overhead .debugReflector to any LpdagStatus node.

Classes

BloomDebugSnapshot
An immutable structured diagnostic snapshot of a reactive Bloom node, capturing its topology, lifecycle, and reactive state payload.
BloomReflector
Specialized diagnostic reflector interface for reactive state carriers (Bloom).
LpdagReflector
Public diagnostic reflector interface for any LPDAG reactive vertex.
LpdagStatus
A status interface representing the current lifecycle state of an LPDAG node.

Extensions

LpdagStatusReflectorExtension on LpdagStatus
Diagnostic reflection extensions for LpdagStatus reactive vertices.