protected static function matchImpl()

in src/expression/StaticVarrayExpression.hack [18:34]


  protected static function matchImpl(
    this::TNode $node,
  ): ?Expression<varray<mixed>> {
    $m = $node->getMembers();
    if ($m === null) {
      return new self(varray[]);
    }
    $values = StaticListExpression::match($m);
    if ($values === null) {
      return null;
    }
    $out = varray[];
    foreach ($values->getValue() as $value) {
      $out[] = $value;
    }
    return new self($out);
  }