* check if the currently reached '+' or '-' character is a unary operator * this method takes for granted that the current character * is a '+' or '-'. * * @return whether the current '+' or '-' is a unary operator. */
| 2829 | * @return whether the current '+' or '-' is a unary operator. |
| 2830 | */ |
| 2831 | bool ASFormatter::isUnaryOperator() const |
| 2832 | { |
| 2833 | assert(currentChar == '+' || currentChar == '-'); |
| 2834 | |
| 2835 | return ((isCharImmediatelyPostReturn || !isLegalNameChar(previousCommandChar)) |
| 2836 | && previousCommandChar != '.' |
| 2837 | && previousCommandChar != '\"' |
| 2838 | && previousCommandChar != '\'' |
| 2839 | && previousCommandChar != ')' |
| 2840 | && previousCommandChar != ']'); |
| 2841 | } |
| 2842 | |
| 2843 | /** |
| 2844 | * check if the currently reached comment is in a 'switch' statement |
nothing calls this directly
no outgoing calls
no test coverage detected