mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Insert async keyword as last modifier (#27491)
This commit is contained in:
1 parent
70e26fc701
commit
f356cd6c89
5 files changed
+40
-1
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user