(source_text: &str)
| 3208 | |
| 3209 | impl SourceKey { |
| 3210 | pub(super) fn of(source_text: &str) -> Self { |
| 3211 | let mut hasher = DefaultHasher::new(); |
| 3212 | source_text.hash(&mut hasher); |
| 3213 | Self { |
| 3214 | len: source_text.len(), |
| 3215 | hash: hasher.finish(), |
| 3216 | } |
| 3217 | } |
| 3218 | } |
| 3219 | |
| 3220 | /// The cached parse of `path` if it was parsed from text matching `key`. |
no test coverage detected