parseExpression parsing the expression with input node n.
(n node)
| 165 | |
| 166 | // parseExpression parsing the expression with input node n. |
| 167 | func (p *parser) parseExpression(n node) node { |
| 168 | if p.d = p.d + 1; p.d > 200 { |
| 169 | panic("the xpath query is too complex(depth > 200)") |
| 170 | } |
| 171 | n = p.parseOrExpr(n) |
| 172 | p.d-- |
| 173 | return n |
| 174 | } |
| 175 | |
| 176 | // next scanning next item on forward. |
| 177 | func (p *parser) next() bool { |
no test coverage detected