(str: string)
| 897 | } |
| 898 | |
| 899 | private capture(str: string): void { |
| 900 | if (!this.consumeOptional(str)) { |
| 901 | throw new RuntimeError( |
| 902 | RuntimeErrorCode.UNEXPECTED_VALUE_IN_URL, |
| 903 | (typeof ngDevMode === 'undefined' || ngDevMode) && `Expected "${str}".`, |
| 904 | ); |
| 905 | } |
| 906 | } |
| 907 | } |
| 908 | |
| 909 | export function createRoot(rootCandidate: UrlSegmentGroup): UrlSegmentGroup { |
no test coverage detected