MCPcopy Create free account
hub / github.com/mozilla/rhino / nowAllSet

Method nowAllSet

rhino/src/main/java/org/mozilla/javascript/Parser.java:2259–2261  ·  view source on GitHub ↗

Returns whether or not the bits in the mask have changed to all set. @param before bits before change @param after bits after change @param mask mask for bits @return true if all the bits in the mask are set in "after" but not in "before"

(int before, int after, int mask)

Source from the content-addressed store, hash-verified

2257 * @return {@code true} if all the bits in the mask are set in "after" but not in "before"
2258 */
2259 private static final boolean nowAllSet(int before, int after, int mask) {
2260 return ((before & mask) != mask) && ((after & mask) == mask);
2261 }
2262
2263 private AstNode returnOrYield(int tt, boolean exprContext) throws IOException {
2264 if (!insideFunctionBody()) {

Callers 1

returnOrYieldMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected