Skip to content

Commit

Permalink
Fix TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
oowekyala committed May 15, 2024
1 parent 60d6de3 commit 09b3470
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions src/scheduler/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -271,9 +271,19 @@ impl<'a, 'x> ReactionCtx<'a, 'x> {
self.debug_info.display_reaction(self.current_reaction.unwrap()),
);
}
// TODO ... (is this TODO still needed?)
PortKind::ChildInputReference => {}
PortKind::ChildOutputReference => {}
PortKind::ChildInputReference => {
// Here there is actually no way we can check this at runtime currently.
// The problem is that the port ID's container is this reactor and not the
// child reactor. This doesn't matter much in practice as programs generated
// with LFC will never fail these checks anyway.
}
PortKind::ChildOutputReference => {
panic!(
"Cannot set an output port of a child (port {} set by reaction {})!",
self.debug_info.id_registry.fmt_component(port_id),
self.debug_info.display_reaction(self.current_reaction.unwrap()),
)
}
}
}

Expand Down

0 comments on commit 09b3470

Please sign in to comment.