Skip to content

Commit 69db384

Browse files
authored
!this triggered a OperatorWhitespace violation, fixes #346 (#348)
1 parent 4645366 commit 69db384

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/checkstyle/utils/TokenTreeCheckUtils.hx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ class TokenTreeCheckUtils {
6363
case Const(_): true;
6464
case POpen: true;
6565
case Kwd(KwdMacro): true;
66+
case Kwd(KwdThis): true;
6667
default: false;
6768
}
6869
}

test/checks/whitespace/OperatorWhitespaceCheckTest.hx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,8 @@ abstract OperatorWhitespaceCheckTests(String) to String {
405405
function test() {
406406
if (!test) return a++;
407407
if ( !test ) return a++;
408+
if ( !this.func() ) return a++;
409+
if ( !super.func() ) return a++;
408410
++a;
409411
return !(a++);
410412
return !( a++ );

0 commit comments

Comments
 (0)