MCPcopy Create free account
hub / github.com/PerroEngine/Perro / parse_state_struct_names

Function parse_state_struct_names

perro_source/devtools/perro_cli/src/doctor.rs:995–1015  ·  view source on GitHub ↗
(text: &str)

Source from the content-addressed store, hash-verified

993 nested_field,
994 index,
995 );
996 }
997 }
998}
999
1000fn validate_one_node_ref_hint(
1001 ctx: &mut NodeRefValidationCtx<'_>,
1002 label: &str,
1003 raw_ref: &str,
1004 hint: NodeRefHint,
1005) {
1006 if hint.allowed.is_empty() {
1007 return;
1008 }
1009 let target = raw_ref.trim().trim_start_matches('@');
1010 if matches!(target, "" | "null" | "none" | "-") {
1011 return;
1012 }
1013 let Some(target_type) = ctx.node_types.get(target).copied() else {
1014 return;
1015 };
1016 if hint.allows(target_type) {
1017 return;
1018 }

Callers 1

index_script_sourceFunction · 0.85

Calls 6

is_state_attributeFunction · 0.85
lenMethod · 0.45
iterMethod · 0.45
is_emptyMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected