( instruction: o.ExternalReference, name: string, expression: o.Expression | ir.Interpolation, sanitizer: o.Expression | null, sourceSpan: ParseSourceSpan, )
| 126 | } |
| 127 | |
| 128 | function propertyBase( |
| 129 | instruction: o.ExternalReference, |
| 130 | name: string, |
| 131 | expression: o.Expression | ir.Interpolation, |
| 132 | sanitizer: o.Expression | null, |
| 133 | sourceSpan: ParseSourceSpan, |
| 134 | ): ir.UpdateOp { |
| 135 | const args: o.Expression[] = [o.literal(name)]; |
| 136 | |
| 137 | if (expression instanceof ir.Interpolation) { |
| 138 | args.push(interpolationToExpression(expression, sourceSpan)); |
| 139 | } else { |
| 140 | args.push(expression); |
| 141 | } |
| 142 | |
| 143 | if (sanitizer !== null) { |
| 144 | args.push(sanitizer); |
| 145 | } |
| 146 | return call(instruction, args, sourceSpan); |
| 147 | } |
| 148 | |
| 149 | export function elementEnd(sourceSpan: ParseSourceSpan | null): ir.CreateOp { |
| 150 | return call(Identifiers.elementEnd, [], sourceSpan); |
no test coverage detected