Added Token::isUnaryOp()
This commit is contained in:
parent
2963522d5f
commit
2c49732eb8
|
@ -309,6 +309,9 @@ public:
|
||||||
bool isBoolean() const {
|
bool isBoolean() const {
|
||||||
return mTokType == eBoolean;
|
return mTokType == eBoolean;
|
||||||
}
|
}
|
||||||
|
bool isUnaryOp() const {
|
||||||
|
return astOperand1() != nullptr && astOperand2() == nullptr;
|
||||||
|
}
|
||||||
bool isUnaryPreOp() const;
|
bool isUnaryPreOp() const;
|
||||||
|
|
||||||
unsigned int flags() const {
|
unsigned int flags() const {
|
||||||
|
|
Loading…
Reference in New Issue