isSubtypeOf method

  1. @override
bool isSubtypeOf(
  1. XPathType other
)
override

Whether this type is equal to or a subtype of other.

Implementation

@override
bool isSubtypeOf(XPathType other) {
  if (super.isSubtypeOf(other)) return true;
  if (other is XPathArrayType) {
    return memberType.isSubtypeOf(other.memberType);
  }
  return false;
}