Skip to content

Commit

Permalink
fixed op bool chain handling (#128)
Browse files Browse the repository at this point in the history
* fixed op bool chain handling
  • Loading branch information
AlexHaxe authored Nov 10, 2018
1 parent c9f0354 commit 0bf61d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
- Fixed conditionals in interface definition [#125](https://github.com/HaxeCheckstyle/tokentree/issues/125)
- Fixed handling of Arrow in arrow functions [#127](https://github.com/HaxeCheckstyle/tokentree/issues/127)
- Fixed POpen detection in arrow functions [#127](https://github.com/HaxeCheckstyle/tokentree/issues/127)
- Fixed OpBool chain handling [#128](https://github.com/HaxeCheckstyle/tokentree/issues/128)

## version 1.0.12 (2018-10-15)

Expand Down
3 changes: 3 additions & 0 deletions src/tokentree/walk/WalkStatement.hx
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,9 @@ class WalkStatement {
token = parent;
break;
case POpen:
if (token.is(POpen)) {
token = parent;
}
break;
case Kwd(KwdReturn), Kwd(KwdUntyped), Kwd(KwdIf), Kwd(KwdWhile):
break;
Expand Down

0 comments on commit 0bf61d4

Please sign in to comment.