mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-18 06:17:19 -05:00
Skip emit of this parameters
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user