MCPcopy Create free account
hub / github.com/BaseXdb/basex / plus

Method plus

basex-core/src/main/java/org/basex/query/var/VarUsage.java:33–35  ·  view source on GitHub ↗

Combines the usages for two expressions that are both executed. @param other usage count to be combined @return number of usages of both expressions combined

(final VarUsage other)

Source from the content-addressed store, hash-verified

31 * @return number of usages of both expressions combined
32 */
33 public VarUsage plus(final VarUsage other) {
34 return this == NEVER ? other : other == NEVER ? this : MORE_THAN_ONCE;
35 }
36
37 /**
38 * Number of usages if the code is executed {@code count} times.

Callers 15

countMethod · 0.95
countMethod · 0.95
countMethod · 0.95
countCasesMethod · 0.95
countMethod · 0.95
countMethod · 0.95
countMethod · 0.95
sumMethod · 0.95
inlineableMethod · 0.45
countMethod · 0.45
countMethod · 0.45
countMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected