XPathPathExpr constructor

XPathPathExpr(
  1. PathStart start,
  2. List<XPathStep> steps
)

Creates a path starting at the root or the context node.

Implementation

XPathPathExpr(this.start, List<XPathStep> steps)
  : assert(start != PathStart.expression, 'use XPathPathExpr.fromFilter'),
    filterExpr = null,
    steps = List.unmodifiable(steps);