174
175
private _getServiceInstanceOrDescriptor<T>(id: ServiceIdentifier<T>): T | SyncDescriptor<T> {
177
>
if (!instanceOrDesc && this._parent) {
178
return this._parent._getServiceInstanceOrDescriptor(id);
180
>
return instanceOrDesc;
181
>
}
182
>
}
183
184
protected _getOrCreateServiceInstance<T>(id: ServiceIdentifier<T>, _trace: Trace): T {
186
this._globalGraph.insertEdge(this._globalGraphImplicitDependency, String(id));
187
}
189
>
if (thing instanceof SyncDescriptor) {
190
return this._safeCreateAndCacheServiceInstance(id, thing, _trace.branch(id, true));
192
_trace.branch(id, false);
193
return thing;
194
}
196
197
private readonly _activeInstantiations = new Set<ServiceIdentifier<any>>();