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:

committed by
atscott

parent
38762020d3
commit
cfd4c0b4dc
@ -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);
|
||||
|
Reference in New Issue
Block a user