(accessor: string, name: string)
| 46 | } |
| 47 | |
| 48 | export function getSafePropertyAccessString(accessor: string, name: string): string { |
| 49 | const escapedName = escapeIdentifier(name, false); |
| 50 | return escapedName !== name ? `${accessor}[${escapedName}]` : `${accessor}.${name}`; |
| 51 | } |
| 52 | |
| 53 | export function jitOnlyGuardedExpression(expr: o.Expression): o.Expression { |
| 54 | return guardedExpression('ngJitMode', expr); |
no test coverage detected