Skip to content

Commit 3eaf2cf

Browse files
committed
Merge pull request #3011 from frankwallis/master
Rename parameter static -> isStatic, fixes 'static is a reserved identif...
2 parents 1625a6c + 76dceb8 commit 3eaf2cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/compiler/emitter.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3481,10 +3481,10 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
34813481
}
34823482
}
34833483

3484-
function getInitializedProperties(node: ClassLikeDeclaration, static: boolean) {
3484+
function getInitializedProperties(node: ClassLikeDeclaration, isStatic: boolean) {
34853485
let properties: PropertyDeclaration[] = [];
34863486
for (let member of node.members) {
3487-
if (member.kind === SyntaxKind.PropertyDeclaration && static === ((member.flags & NodeFlags.Static) !== 0) && (<PropertyDeclaration>member).initializer) {
3487+
if (member.kind === SyntaxKind.PropertyDeclaration && isStatic === ((member.flags & NodeFlags.Static) !== 0) && (<PropertyDeclaration>member).initializer) {
34883488
properties.push(<PropertyDeclaration>member);
34893489
}
34903490
}

0 commit comments

Comments
 (0)