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

Method key

packages/compiler-cli/preprocessor/ng-analyze/src/evaluator/value.rs:622–638  ·  view source on GitHub ↗

Identity of this hole for the [`ResolvedEnv`]. Span-independent: every use of the same import binding shares one env entry, and call holes are keyed by callee + argument fingerprint so the same call site under different parameter scopes keys separately.

(&self)

Source from the content-addressed store, hash-verified

620 /// import binding shares one env entry, and call holes are keyed by callee + argument
621 /// fingerprint so the same call site under different parameter scopes keys separately.
622 pub fn key(&self) -> HoleKey {
623 match &self.dep {
624 IncompleteDep::Reference(target) => HoleKey::Reference(target.clone()),
625 IncompleteDep::AmbientGlobal { file, name } => HoleKey::AmbientGlobal {
626 file: *file,
627 name: name.clone(),
628 },
629 IncompleteDep::Member { base, member } => HoleKey::Member {
630 base: base.clone(),
631 member: member.clone(),
632 },
633 IncompleteDep::Call { callee, args } => HoleKey::Call {
634 callee: callee.clone(),
635 args_fingerprint: fingerprint_args(args),
636 },
637 }
638 }
639}
640
641/// What a hole is waiting on.

Callers 15

setMethod · 0.45
compileHmrUpdateCallbackFunction · 0.45
safeTransformFunction · 0.45
collect_holesFunction · 0.45
substituteFunction · 0.45
hash_valueFunction · 0.45
complete_valueFunction · 0.45
env_fills_holes_on_rerunFunction · 0.45

Calls 3

fingerprint_argsFunction · 0.85
cloneMethod · 0.65
ReferenceClass · 0.50