This means that "foo[1]" uses this AST:
(predicate (test nil "foo") (int 1))
Instead of this AST:
(test nil "foo" (int 1))
This makes it easier for the XPath evaluator to process predicates correctly.
|
||
|---|---|---|
| .. | ||
| axes_spec.rb | ||
| calls_spec.rb | ||
| grouping_spec.rb | ||
| node_type_spec.rb | ||
| operator_precedence_spec.rb | ||
| operators_spec.rb | ||
| paths_spec.rb | ||
| predicates_spec.rb | ||
| variable_spec.rb | ||
| wildcard_spec.rb | ||