Emit destructuring in parameter

This commit is contained in:
Yui T
2015-03-19 14:36:30 -07:00
parent 79272d7cef
commit 36ea7c8d77
7 changed files with 84 additions and 8 deletions

View File

@@ -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);