Skip to content

Commit

Permalink
Remove updateX functions for template parts (microsoft#18714)
Browse files Browse the repository at this point in the history
  • Loading branch information
weswigham authored Sep 23, 2017
1 parent 4221fb6 commit 0abfd6a
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions src/compiler/factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1213,48 +1213,24 @@ namespace ts {
return node;
}

export function updateTemplateHead(node: TemplateHead, text: string) {
return node.text !== text
? updateNode(createTemplateHead(text), node)
: node;
}

export function createTemplateMiddle(text: string) {
const node = <TemplateMiddle>createSynthesizedNode(SyntaxKind.TemplateMiddle);
node.text = text;
return node;
}

export function updateTemplateMiddle(node: TemplateMiddle, text: string) {
return node.text !== text
? updateNode(createTemplateMiddle(text), node)
: node;
}

export function createTemplateTail(text: string) {
const node = <TemplateTail>createSynthesizedNode(SyntaxKind.TemplateTail);
node.text = text;
return node;
}

export function updateTemplateTail(node: TemplateTail, text: string) {
return node.text !== text
? updateNode(createTemplateTail(text), node)
: node;
}

export function createNoSubstitutionTemplateLiteral(text: string) {
const node = <NoSubstitutionTemplateLiteral>createSynthesizedNode(SyntaxKind.NoSubstitutionTemplateLiteral);
node.text = text;
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(asteriskToken: AsteriskToken, expression: Expression): YieldExpression;
export function createYield(asteriskTokenOrExpression?: AsteriskToken | Expression, expression?: Expression) {
Expand Down

0 comments on commit 0abfd6a

Please sign in to comment.