XPathStep.typed constructor
XPathStep.typed(
- XPathAxis axis,
- StepTest test, {
- String? literal,
- List<
XPathExpression> predicates = const [],
A *, node(), text(), comment() or
processing-instruction(literal) step.
Implementation
XPathStep.typed(
this.axis,
this.test, {
this.literal,
List<XPathExpression> predicates = const [],
}) : assert(
test != StepTest.name && test != StepTest.namespaceWildcard,
'use XPathStep.named or XPathStep.namespaceWildcard',
),
name = null,
namespace = null,
predicates = List.unmodifiable(predicates);