Insert async keyword as last modifier (#27491)

This commit is contained in:
Benjamin Lichtman
2018-10-01 17:43:17 -07:00
committed by Andy
parent 70e26fc701
commit f356cd6c89
5 changed files with 40 additions and 1 deletions

View File

@@ -68,7 +68,7 @@ namespace ts.codefix {
}
// add the async keyword
changes.insertModifierBefore(sourceFile, SyntaxKind.AsyncKeyword, functionToConvert);
changes.insertLastModifierBefore(sourceFile, SyntaxKind.AsyncKeyword, functionToConvert);
function startTransformation(node: CallExpression, nodeToReplace: Node) {
const newNodes = transformExpression(node, transformer, node);