function typehints_from_ast_va()

in src/consumers/typehints_from_ast_va.hack [15:23]


function typehints_from_ast_va(
  ConsumerContext $context,
  ?HHAST\Node ...$nodes
): vec<ScannedTypehint> {
  return $nodes
    |> Vec\map($$, $c ==> $c is HHAST\ListItem<_> ? $c->getItem() : $c)
    |> Vec\map($$, $c ==> typehint_from_ast($context, $c))
    |> Vec\filter_nulls($$);
}