refactor(compiler): track the closing source-span of TagPlaceholders (#38747)

The `TagPlaceholder` can contain children, in which case there are two source
spans of interest: the opening tag and the closing tag. This commit now allows
the closing tag source-span to be tracked, so that it can be used later in
source-mapping.

PR Close #38747
This commit is contained in:
Pete Bacon Darwin
2020-08-31 16:23:01 +01:00
committed by atscott
parent 38762020d3
commit cfd4c0b4dc
4 changed files with 21 additions and 8 deletions

View File

@ -41,7 +41,7 @@ import {_extractMessages} from '../i18n_parser_spec';
new i18n.IcuPlaceholder(null!, '', null!),
],
null!);
const tag = new i18n.TagPlaceholder('', {}, '', '', [container], false, null!);
const tag = new i18n.TagPlaceholder('', {}, '', '', [container], false, null!, null);
const icu = new i18n.Icu('', '', {tag}, null!);
icu.visit(visitor);