From bad577be00807498f6dce29128d34b55ec599583 Mon Sep 17 00:00:00 2001 From: Nathan Shively-Sanders Date: Tue, 19 Apr 2016 14:35:14 -0700 Subject: [PATCH] Skip emit of this parameters --- src/compiler/utilities.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/utilities.ts b/src/compiler/utilities.ts index 7e393c5a35a..fef23ebdcf1 100644 --- a/src/compiler/utilities.ts +++ b/src/compiler/utilities.ts @@ -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 {