Skip to main content

find_unresolved_references

Function find_unresolved_references 

Source
pub fn find_unresolved_references(net: &MulticonductorNetwork) -> Vec<String>
Expand description

Push a warning for every dangling or empty cross-reference. Bus and linecode references are bare strings, a reader leaves an empty string where the field is missing, and the graph projection synthesizes a phantom bus for any unresolved id (the empty string included) — so a typo or an absent field would otherwise parse cleanly into a topologically wrong network. Comparison is ASCII case insensitive, matching MulticonductorNetwork::bus and MulticonductorNetwork::linecode. The unresolved bus and linecode references of a network, as one message per finding: the same walk the reader’s warning pass runs, exposed so a decoder can refuse a document whose network fails it.