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