| 891 | } |
| 892 | |
| 893 | export class NodeInjector implements Injector { |
| 894 | constructor( |
| 895 | private _tNode: TElementNode | TContainerNode | TElementContainerNode | null, |
| 896 | private _lView: LView, |
| 897 | ) {} |
| 898 | |
| 899 | get(token: any, notFoundValue?: any, flags?: InternalInjectFlags | InjectOptions): any { |
| 900 | return getOrCreateInjectable( |
| 901 | this._tNode, |
| 902 | this._lView, |
| 903 | token, |
| 904 | convertToBitFlags(flags), |
| 905 | notFoundValue, |
| 906 | ); |
| 907 | } |
| 908 | } |
| 909 | |
| 910 | /** Creates a `NodeInjector` for the current node. */ |
| 911 | export function createNodeInjector(): Injector { |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…