(line: &str, node_ref_types: Vec<String>)
| 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 |
no test coverage detected