Index: runtime/vm/token.cc |
diff --git a/runtime/vm/token.cc b/runtime/vm/token.cc |
index d82a31a95c2f54c55b8497ef53d5561cf5157692..5109177efba582f88d105bff3b5889f712122c73 100644 |
--- a/runtime/vm/token.cc |
+++ b/runtime/vm/token.cc |
@@ -69,4 +69,18 @@ bool Token::IsUnaryArithmeticOperator(Token::Kind token) { |
return (token == kBIT_NOT) || (token == kNEGATE); |
} |
+ |
+bool Token::IsBinaryBitwiseOperator(Token::Kind token) { |
+ switch (token) { |
+ case Token::kBIT_OR: |
+ case Token::kBIT_XOR: |
+ case Token::kBIT_AND: |
+ case Token::kSHL: |
+ case Token::kSHR: |
+ return true; |
+ default: |
+ return false; |
+ } |
+} |
+ |
} // namespace dart |