( instruction: o.ExternalReference, slot: number, templateFnRef: o.Expression, decls: number, vars: number, tag: string | null, constIndex: number | null, localRefs: number | null, sourceSpan: ParseSourceSpan, )
| 74 | } |
| 75 | |
| 76 | function templateBase( |
| 77 | instruction: o.ExternalReference, |
| 78 | slot: number, |
| 79 | templateFnRef: o.Expression, |
| 80 | decls: number, |
| 81 | vars: number, |
| 82 | tag: string | null, |
| 83 | constIndex: number | null, |
| 84 | localRefs: number | null, |
| 85 | sourceSpan: ParseSourceSpan, |
| 86 | ): ir.CreateOp { |
| 87 | const args = [ |
| 88 | o.literal(slot), |
| 89 | templateFnRef, |
| 90 | o.literal(decls), |
| 91 | o.literal(vars), |
| 92 | o.literal(tag), |
| 93 | o.literal(constIndex), |
| 94 | ]; |
| 95 | if (localRefs !== null) { |
| 96 | args.push(o.literal(localRefs)); |
| 97 | args.push(o.importExpr(Identifiers.templateRefExtractor)); |
| 98 | } |
| 99 | while (args[args.length - 1].isEquivalent(o.NULL_EXPR)) { |
| 100 | args.pop(); |
| 101 | } |
| 102 | return call(instruction, args, sourceSpan); |
| 103 | } |
| 104 | |
| 105 | function propertyBase( |
| 106 | instruction: o.ExternalReference, |
no test coverage detected
searching dependent graphs…