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) (#207)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pajn authored and soda0289 committed Apr 1, 2017
1 parent 1cee2e3 commit 1e73711
Show file tree
Hide file tree
Showing 7 changed files with 1,697 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 @@ -762,6 +762,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 1e73711

Please sign in to comment.