(accessor: string, name: string)
| 133 | } |
| 134 | |
| 135 | export function getSafePropertyAccessString(accessor: string, name: string): string { |
| 136 | const escapedName = escapeIdentifier(name, false); |
| 137 | return escapedName !== name ? `${accessor}[${escapedName}]` : `${accessor}.${name}`; |
| 138 | } |
| 139 | |
| 140 | export function jitOnlyGuardedExpression(expr: o.Expression): o.Expression { |
| 141 | return guardedExpression('ngJitMode', expr); |
no test coverage detected