mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-18 07:29:16 -05:00
Emit destructuring in parameter
This commit is contained in:
@@ -1291,7 +1291,8 @@ module ts {
|
||||
write("...");
|
||||
}
|
||||
if (isBindingPattern(node.name)) {
|
||||
write("_" + indexOf((<FunctionLikeDeclaration>node.parent).parameters, node));
|
||||
// By emitting binding pattern as binding pattern in function parameters, language service can provide better signature help
|
||||
write(getTextOfNode(node.name));
|
||||
}
|
||||
else {
|
||||
writeTextOfNode(currentSourceFile, node.name);
|
||||
|
||||
Reference in New Issue
Block a user