XPathStep.typed constructor

XPathStep.typed(
  1. XPathAxis axis,
  2. StepTest test, {
  3. String? literal,
  4. 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);