(expr: string)
| 320 | |
| 321 | /** `{ path: '/', query }` — Vue's object destination, whose key is `path`, not `pathname`. */ |
| 322 | export function parseVuePathObject(expr: string): HrefLiteral | null { |
| 323 | const args = expr.trim(); |
| 324 | if (args[0] !== '{') return null; |
| 325 | const key = /\bpath\s*:\s*['"`]/.exec(args); |
| 326 | if (!key) return null; |
| 327 | return toHref(readStringAt(args, key.index + key[0].length - 1)); |
| 328 | } |
| 329 | |
| 330 | /** True for the `calls` ref this resolver's `extract` emitted from a route to its component. */ |
| 331 | function isVueRouteRef(ref: UnresolvedRef): boolean { |
no test coverage detected