in codegen/syntax/AnonymousFunction.hack [218:274]
public function rewriteChildren<Tret as ?Node>(
(function(Node, vec<Node>): Tret) $rewriter,
vec<Node> $parents = vec[],
): this {
$parents[] = $this;
$attribute_spec = $this->_attribute_spec === null
? null
: $rewriter($this->_attribute_spec, $parents);
$async_keyword = $this->_async_keyword === null
? null
: $rewriter($this->_async_keyword, $parents);
$function_keyword = $rewriter($this->_function_keyword, $parents);
$left_paren = $rewriter($this->_left_paren, $parents);
$parameters = $this->_parameters === null
? null
: $rewriter($this->_parameters, $parents);
$right_paren = $rewriter($this->_right_paren, $parents);
$ctx_list =
$this->_ctx_list === null ? null : $rewriter($this->_ctx_list, $parents);
$colon = $this->_colon === null ? null : $rewriter($this->_colon, $parents);
$readonly_return = $this->_readonly_return === null
? null
: $rewriter($this->_readonly_return, $parents);
$type = $this->_type === null ? null : $rewriter($this->_type, $parents);
$use = $this->_use === null ? null : $rewriter($this->_use, $parents);
$body = $rewriter($this->_body, $parents);
if (
$attribute_spec === $this->_attribute_spec &&
$async_keyword === $this->_async_keyword &&
$function_keyword === $this->_function_keyword &&
$left_paren === $this->_left_paren &&
$parameters === $this->_parameters &&
$right_paren === $this->_right_paren &&
$ctx_list === $this->_ctx_list &&
$colon === $this->_colon &&
$readonly_return === $this->_readonly_return &&
$type === $this->_type &&
$use === $this->_use &&
$body === $this->_body
) {
return $this;
}
return new static(
$attribute_spec as ?OldAttributeSpecification,
$async_keyword as ?AsyncToken,
$function_keyword as FunctionToken,
$left_paren as LeftParenToken,
/* HH_FIXME[4110] ?NodeList<ListItem<ParameterDeclaration>> may not be enforceable */ $parameters,
$right_paren as RightParenToken,
$ctx_list as ?Node,
$colon as ?ColonToken,
$readonly_return as ?ReadonlyToken,
$type as ?ITypeSpecifier,
$use as ?AnonymousFunctionUseClause,
$body as CompoundStatement,
);
}