Skip to content
This repository has been archived by the owner on Jan 19, 2019. It is now read-only.

Commit

Permalink
Fix: Optional methods are not marked as optional (fixes #206)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pajn committed Mar 20, 2017
1 parent bfb1506 commit 0902d62
Show file tree
Hide file tree
Showing 3 changed files with 777 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/ast-converter.js
Original file line number Diff line number Diff line change
Expand Up @@ -759,6 +759,7 @@ module.exports = function(ast, extra) {
SyntaxKind.Parameter === node.parent.kind ||
SyntaxKind.PropertyDeclaration === node.parent.kind ||
SyntaxKind.PropertySignature === node.parent.kind ||
SyntaxKind.MethodDeclaration === node.parent.kind ||
SyntaxKind.MethodSignature === node.parent.kind
)) {
result.optional = true;
Expand Down
Loading

0 comments on commit 0902d62

Please sign in to comment.