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

Function parse_field_for_doctor

perro_source/devtools/perro_cli/src/doctor.rs:1168–1193  ·  view source on GitHub ↗
(line: &str, node_ref_types: Vec<String>)

Source from the content-addressed store, hash-verified

1166 files.push(file.to_path_buf());
1167 }
1168 if field.is_pub {
1169 let pub_files = index
1170 .state_field_pub_files
1171 .entry(field.name.clone())
1172 .or_default();
1173 if !pub_files.iter().any(|known| known == file) {
1174 pub_files.push(file.to_path_buf());
1175 }
1176 }
1177 index
1178 .script_state_field_defs
1179 .entry(file.to_path_buf())
1180 .or_default()
1181 .insert(field.name.clone(), field.clone());
1182 index.state_fields.insert(field.name);
1183 }
1184 }
1185 for method in parse_script_methods(text) {
1186 let def = index.methods.entry(method.name).or_default();
1187 def.is_pub |= method.is_pub;
1188 def.dispatch |= method.has_ctx;
1189 if !def.files.iter().any(|known| known == file) {
1190 def.files.push(file.to_path_buf());
1191 }
1192 if method.is_pub && !def.pub_files.iter().any(|known| known == file) {
1193 def.pub_files.push(file.to_path_buf());
1194 }
1195 if method.is_pub
1196 && method.has_ctx

Callers 3

parse_struct_fieldsFunction · 0.85
parse_enum_fieldsFunction · 0.85
parse_enum_line_fieldsFunction · 0.85

Calls 3

is_ident_for_doctorFunction · 0.85
is_emptyMethod · 0.45

Tested by

no test coverage detected