A constant path's value: `internalRoutes.account.path` → `account`.
(expr: string, fromFile: string, context: ResolutionContext)
| 584 | |
| 585 | /** A constant path's value: `internalRoutes.account.path` → `account`. */ |
| 586 | function constantValue(expr: string, fromFile: string, context: ResolutionContext): string | null { |
| 587 | const text = constantText(expr, fromFile, context); |
| 588 | return text === null ? null : staticString(text); |
| 589 | } |
| 590 | |
| 591 | /** The file declaring `name` for code in `fromFile`: its import, else the file itself. */ |
| 592 | function declaringFile(name: string, fromFile: string, context: ResolutionContext): string | null { |
no test coverage detected