* check if the currently reached comment is in a 'switch' statement * * @return whether the current '+' or '-' is in an exponent. */
| 2846 | * @return whether the current '+' or '-' is in an exponent. |
| 2847 | */ |
| 2848 | bool ASFormatter::isInSwitchStatement() const |
| 2849 | { |
| 2850 | assert(isInLineComment || isInComment); |
| 2851 | if (preBracketHeaderStack->size() > 0) |
| 2852 | for (size_t i = 1; i < preBracketHeaderStack->size(); i++) |
| 2853 | if (preBracketHeaderStack->at(i) == &AS_SWITCH) |
| 2854 | return true; |
| 2855 | return false; |
| 2856 | } |
| 2857 | |
| 2858 | /** |
| 2859 | * check if the currently reached '+' or '-' character is |
nothing calls this directly
no outgoing calls
no test coverage detected