Populate the method store from a slice of classes. For each class, inserts every method under the key `(class_fqn, method.name)`. Called from `update_ast_inner` and `parse_and_cache_content_versioned` after classes are parsed.
(&self, classes: &[Arc<ClassInfo>])
| 974 | /// `(class_fqn, method.name)`. Called from `update_ast_inner` |
| 975 | /// and `parse_and_cache_content_versioned` after classes are parsed. |
| 976 | pub(crate) fn populate_method_store(&self, classes: &[Arc<ClassInfo>]) { |
| 977 | let mut store = self.method_store.write(); |
| 978 | for cls in classes { |
| 979 | let fqn = cls.fqn().to_string(); |
| 980 | for method in &cls.methods { |
| 981 | let key = (fqn.clone(), method.name.to_string()); |
| 982 | store.insert(key, Arc::clone(method)); |
| 983 | } |
| 984 | } |
| 985 | } |
| 986 | |
| 987 | /// Remove all method store entries whose class FQN matches any of |
| 988 | /// the given FQNs. |
no test coverage detected