(token: string, path?: string[])
| 22 | |
| 23 | /** Creates a circular dependency runtime error. */ |
| 24 | export function cyclicDependencyError(token: string, path?: string[]): Error { |
| 25 | const message = ngDevMode ? `Circular dependency detected for \`${token}\`.` : ''; |
| 26 | return createRuntimeError(message, RuntimeErrorCode.CYCLIC_DI_DEPENDENCY, path); |
| 27 | } |
| 28 | |
| 29 | /** Creates a circular dependency runtime error including a dependency path in the error message. */ |
| 30 | export function cyclicDependencyErrorWithDetails(token: string, path: string[]): Error { |
no test coverage detected
searching dependent graphs…