We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c7e7f3 commit d1f34dcCopy full SHA for d1f34dc
include/swift/AST/Identifier.h
@@ -118,6 +118,14 @@ class Identifier {
118
return is("+") || is("-") || is("*") || is("/") || is("%");
119
}
120
121
+ bool isBitwiseOperator() const {
122
+ return is("~") || is("&") || is("|") || is("^");
123
+ }
124
+
125
+ bool isShiftOperator() const {
126
+ return is("<<") || is(">>");
127
128
129
// Returns whether this is a standard comparison operator,
130
// such as '==', '>=' or '!=='.
131
bool isStandardComparisonOperator() const {
0 commit comments