Remove updateX functions for template parts (#18714)
This commit is contained in:
parent
4221fb6a39
commit
0abfd6a165
1 changed files with 0 additions and 24 deletions
|
@ -1213,48 +1213,24 @@ namespace ts {
|
||||||
return node;
|
return node;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function updateTemplateHead(node: TemplateHead, text: string) {
|
|
||||||
return node.text !== text
|
|
||||||
? updateNode(createTemplateHead(text), node)
|
|
||||||
: node;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function createTemplateMiddle(text: string) {
|
export function createTemplateMiddle(text: string) {
|
||||||
const node = <TemplateMiddle>createSynthesizedNode(SyntaxKind.TemplateMiddle);
|
const node = <TemplateMiddle>createSynthesizedNode(SyntaxKind.TemplateMiddle);
|
||||||
node.text = text;
|
node.text = text;
|
||||||
return node;
|
return node;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function updateTemplateMiddle(node: TemplateMiddle, text: string) {
|
|
||||||
return node.text !== text
|
|
||||||
? updateNode(createTemplateMiddle(text), node)
|
|
||||||
: node;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function createTemplateTail(text: string) {
|
export function createTemplateTail(text: string) {
|
||||||
const node = <TemplateTail>createSynthesizedNode(SyntaxKind.TemplateTail);
|
const node = <TemplateTail>createSynthesizedNode(SyntaxKind.TemplateTail);
|
||||||
node.text = text;
|
node.text = text;
|
||||||
return node;
|
return node;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function updateTemplateTail(node: TemplateTail, text: string) {
|
|
||||||
return node.text !== text
|
|
||||||
? updateNode(createTemplateTail(text), node)
|
|
||||||
: node;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function createNoSubstitutionTemplateLiteral(text: string) {
|
export function createNoSubstitutionTemplateLiteral(text: string) {
|
||||||
const node = <NoSubstitutionTemplateLiteral>createSynthesizedNode(SyntaxKind.NoSubstitutionTemplateLiteral);
|
const node = <NoSubstitutionTemplateLiteral>createSynthesizedNode(SyntaxKind.NoSubstitutionTemplateLiteral);
|
||||||
node.text = text;
|
node.text = text;
|
||||||
return node;
|
return node;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function updateNoSubstitutionTemplateLiteral(node: NoSubstitutionTemplateLiteral, text: string) {
|
|
||||||
return node.text !== text
|
|
||||||
? updateNode(createNoSubstitutionTemplateLiteral(text), node)
|
|
||||||
: node;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function createYield(expression?: Expression): YieldExpression;
|
export function createYield(expression?: Expression): YieldExpression;
|
||||||
export function createYield(asteriskToken: AsteriskToken, expression: Expression): YieldExpression;
|
export function createYield(asteriskToken: AsteriskToken, expression: Expression): YieldExpression;
|
||||||
export function createYield(asteriskTokenOrExpression?: AsteriskToken | Expression, expression?: Expression) {
|
export function createYield(asteriskTokenOrExpression?: AsteriskToken | Expression, expression?: Expression) {
|
||||||
|
|
Loading…
Reference in a new issue