Added Token::isUnaryOp()

This commit is contained in:
Daniel Marjamäki 2018-07-13 16:40:32 +02:00
parent 2963522d5f
commit 2c49732eb8
1 changed files with 3 additions and 0 deletions

View File

@ -309,6 +309,9 @@ public:
bool isBoolean() const {
return mTokType == eBoolean;
}
bool isUnaryOp() const {
return astOperand1() != nullptr && astOperand2() == nullptr;
}
bool isUnaryPreOp() const;
unsigned int flags() const {