Kind: Class
Source: atloria-monorepo/packages/doc-automation/src/v2/stages/stage-01-parse/state-machine-detector.ts
State Machine Detector
Methods
| Method | Signature | Returns |
|---|---|---|
detect | detect(entities: Entity[]) | DetectedStateMachine[] |
linkTransitions | linkTransitions(stateMachines: DetectedStateMachine[], entities: Entity[]) | void |
Where it refuses work
StateMachineDetectorstops the work with an early return when!isStatusEnum.StateMachineDetectorstops the work with an early return whenstates.length < 2.StateMachineDetectorstops the work with an early return when!code.includes('createMachine') && !code.includes('Machine(').StateMachineDetectorstops the work with an early return whenstates.length === 0.StateMachineDetectorstops the work with an early return whenfuncMatch.StateMachineDetectorstops the work with an early return whenarrowMatch.
Was this page helpful?