refactor(ivy): update ɵɵtextBinding to not take index (#30792)

- Splits core functionality off into a shared internal function
- ɵɵtextBinding will no longer require an index
- Alters the compiler to stop generating an index argument for the instruction
- Updates tests
- Updates some usage of ɵɵtextBinding in i18n to use the helper function instead

PR Close #30792
This commit is contained in:
Ben Lesh
2019-05-31 14:41:07 -07:00
committed by Andrew Kushnir
parent b5aa0473fc
commit 16aa6ceff8
21 changed files with 175 additions and 93 deletions

View File

@ -955,8 +955,7 @@ export class TemplateDefinitionBuilder implements t.Visitor<void>, LocalResolver
() => this.getUpdateInstructionArguments(value));
} else {
this.updateInstruction(
nodeIndex, text.sourceSpan, R3.textBinding,
() => [o.literal(nodeIndex), this.convertPropertyBinding(value)]);
nodeIndex, text.sourceSpan, R3.textBinding, () => [this.convertPropertyBinding(value)]);
}
}