Skip emit of this parameters

This commit is contained in:
Nathan Shively-Sanders 2016-04-19 14:35:14 -07:00
parent fde2ae5e2a
commit bad577be00

View File

@ -3331,7 +3331,7 @@ namespace ts {
}
export function isParameter(node: Node): node is ParameterDeclaration {
return node.kind === SyntaxKind.Parameter;
return node.kind === SyntaxKind.Parameter && ((node as ParameterDeclaration).name as Identifier).text !== "this";
}
export function isDecorator(node: Node): node is Decorator {