MCPcopy Create free account
hub / github.com/angular/angular / of

Method of

packages/compiler-cli/preprocessor/ng-analyze/src/query/engine.rs:3210–3217  ·  view source on GitHub ↗
(source_text: &str)

Source from the content-addressed store, hash-verified

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`.

Callers 1

Calls 3

hashMethod · 0.65
finishMethod · 0.65
lenMethod · 0.45

Tested by

no test coverage detected