MCPcopy Create free account
hub / github.com/dirkvranckaert/AndroidDecompiler / isInSwitchStatement

Method isInSwitchStatement

astyle/src/ASFormatter.cpp:2848–2856  ·  view source on GitHub ↗

* check if the currently reached comment is in a 'switch' statement * * @return whether the current '+' or '-' is in an exponent. */

Source from the content-addressed store, hash-verified

2846 * @return whether the current '+' or '-' is in an exponent.
2847 */
2848bool 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected