Added Token::isUnaryOp()
This commit is contained in:
parent
2963522d5f
commit
2c49732eb8
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue