( instruction: o.ExternalReference, name: string, expression: o.Expression | ir.Interpolation, sanitizer: o.Expression | null, sourceSpan: ParseSourceSpan, )
| 103 | } |
| 104 | |
| 105 | function propertyBase( |
| 106 | instruction: o.ExternalReference, |
| 107 | name: string, |
| 108 | expression: o.Expression | ir.Interpolation, |
| 109 | sanitizer: o.Expression | null, |
| 110 | sourceSpan: ParseSourceSpan, |
| 111 | ): ir.UpdateOp { |
| 112 | const args: o.Expression[] = [o.literal(name)]; |
| 113 | |
| 114 | if (expression instanceof ir.Interpolation) { |
| 115 | args.push(interpolationToExpression(expression, sourceSpan)); |
| 116 | } else { |
| 117 | args.push(expression); |
| 118 | } |
| 119 | |
| 120 | if (sanitizer !== null) { |
| 121 | args.push(sanitizer); |
| 122 | } |
| 123 | return call(instruction, args, sourceSpan); |
| 124 | } |
| 125 | |
| 126 | export function elementEnd(sourceSpan: ParseSourceSpan | null): ir.CreateOp { |
| 127 | return call(Identifiers.elementEnd, [], sourceSpan); |
no test coverage detected
searching dependent graphs…