Merge pull request #25507 from ajafff/leftmost-expr-tagged-template

getLeftmostExpression: handle TaggedTemplateExpression
This commit is contained in:
Daniel Rosenwasser
2018-07-13 23:56:32 -07:00
committed by GitHub
2 changed files with 6 additions and 0 deletions

View File

@@ -21,6 +21,7 @@ namespace ts {
const func = createFunctionExpression(/*modifiers*/ undefined, /*asteriskToken*/ undefined, "fn", /*typeParameters*/ undefined, /*parameters*/ undefined, /*type*/ undefined, createBlock([]));
checkExpression(func);
checkExpression(createCall(func, /*typeArguments*/ undefined, /*argumentsArray*/ undefined));
checkExpression(createTaggedTemplate(func, createNoSubstitutionTemplateLiteral("")));
checkExpression(createBinary(createLiteral("a"), SyntaxKind.CommaToken, createLiteral("b")));
checkExpression(createCommaList([createLiteral("a"), createLiteral("b")]));