compose static method

  1. @protected
String compose(
  1. List<FtsP> phrases,
  2. int n
)

Implementation

@protected
static String compose(List<FtsP> phrases, int n) {
  checkState(phrases.length >= 2);
  var joined = phrases.map((var p) => p.str).join(" ");
  var suffix = n >= 0 ? ", $n" : "";
  return "NEAR($joined$suffix)";
}