matchesSequence method

bool matchesSequence(
  1. XPathSequence sequence
)

Whether the sequence matches this type.

Implementation

bool matchesSequence(XPathSequence sequence) {
  if (sequence.length != 1) return false;
  return matchesItem(sequence.single);
}