blob: 8647dbd406073f03f1b49dfd5f68353dc0b7eae6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
//! ref: composer/vendor/composer/class-map-generator/src/FileList.php
use indexmap::IndexMap;
/// Contains a list of files which were scanned to generate a classmap
#[derive(Debug)]
pub struct FileList {
pub files: IndexMap<String, bool>,
}
impl FileList {
pub fn add(&mut self, path: String) {
self.files.insert(path, true);
}
pub fn contains(&self, path: &str) -> bool {
self.files.contains_key(path)
}
}
|