makePost method

  1. @override
NamedNode makePost(
  1. Node indexValue,
  2. ChildKey name
)
override

The post for a query bound: indexValue under name.

Implementation

@override
NamedNode makePost(Node indexValue, ChildKey name) {
  if (indexValue is! LeafNode || indexValue.value is! String) {
    throw ArgumentError('KeyIndex indexValue must always be a string.');
  }
  // The node is never compared: the comparator only looks at the name.
  return NamedNode(ChildKey(indexValue.value as String), ChildrenNode.empty);
}