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

Method or

basex-core/src/main/java/org/basex/query/QueryParser.java:1703–1711  ·  view source on GitHub ↗

Parses the "OrExpr" rule. @return query expression or null @throws QueryException query exception

()

Source from the content-addressed store, hash-verified

1701 * @throws QueryException query exception
1702 */
1703 private Expr or() throws QueryException {
1704 final Expr expr = and();
1705 if(!wsConsumeWs(OR)) return expr;
1706
1707 final InputInfo ii = info();
1708 final ExprList el = new ExprList(2).add(expr);
1709 do add(el, and()); while(wsConsumeWs(OR));
1710 return new Or(ii, el.finish());
1711 }
1712
1713 /**
1714 * Parses the "AndExpr" rule.

Callers 1

singleMethod · 0.95

Calls 6

andMethod · 0.95
wsConsumeWsMethod · 0.95
infoMethod · 0.95
addMethod · 0.95
addMethod · 0.65
finishMethod · 0.45

Tested by

no test coverage detected