MCPcopy
hub / github.com/angular/angular / resolve

Function resolve

packages/core/testing/src/resolvers.ts:85–103  ·  view source on GitHub ↗
(type: Type<any>)

Source from the content-addressed store, hash-verified

83 }
84
85 resolve(type: Type<any>): T | null {
86 let resolved: T | null = this.resolved.get(type) || null;
87
88 if (!resolved) {
89 resolved = this.getAnnotation(type);
90 if (resolved) {
91 const overrides = this.overrides.get(type);
92 if (overrides) {
93 const overrider = new MetadataOverrider();
94 overrides.forEach((override) => {
95 resolved = overrider.overrideMetadata(this.type, resolved!, override);
96 });
97 }
98 }
99 this.resolved.set(type, resolved);
100 }
101
102 return resolved;
103 }
104}
105
106export class DirectiveResolver extends OverrideResolver<Directive> {

Callers 15

whenStableMethod · 0.70
writeFileFunction · 0.50
_readUntilEndMarkMethod · 0.50
getAndClearValuesMethod · 0.50
getTimeoutValueMethod · 0.50
patchJasmineItFunction · 0.50
styleCountFunction · 0.50
timeoutMethod · 0.50
ngswAppInitializerFunction · 0.50
postMessageMethod · 0.50
requestSubscriptionMethod · 0.50
index_spec.tsFile · 0.50

Calls 4

overrideMetadataMethod · 0.95
getMethod · 0.65
setMethod · 0.65
forEachMethod · 0.45

Tested by 6

resolveMethod · 0.40
resolveAfterFunction · 0.40
delayPromiseFunction · 0.40
guardsIntegrationSuiteFunction · 0.40
constructorMethod · 0.40
testPromiseSubClassFunction · 0.40

Used in the wild real call sites across dependent graphs

searching dependent graphs…