mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-15 11:35:42 -06:00
Skip emit of this parameters
This commit is contained in:
parent
fde2ae5e2a
commit
bad577be00
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user