chore(tests): consistent captures

This commit is contained in:
Christian Clason 2023-12-24 12:52:21 +01:00
parent 17fae3f4a3
commit 10dd49958c
60 changed files with 872 additions and 873 deletions

View file

@ -5,23 +5,23 @@ use type Facebook\XHP\HTML\{XHPHTMLHelpers, a, form};
final xhp class a_post extends x\element {
// ^ type.qualifier
// ^ type.qualifier
// ^ keyword
// ^ @type.qualifier
// ^ @type.qualifier
// ^ @keyword
use XHPHTMLHelpers;
attribute string href @required;
// ^ attribute
// ^ @attribute
attribute string target;
// ^ keyword
// ^ @keyword
<<__Override>>
protected async function renderAsync(): Awaitable<x\node> {
$id = $this->getID();
$anchor = <a>{$this->getChildren()}</a>;
// ^ tag.delimiter
// ^ tag
// ^ @tag.delimiter
// ^ @tag
$form = (
<form
id={$id}
@ -38,7 +38,7 @@ final xhp class a_post extends x\element {
'document.getElementById("'.$id.'").submit(); return false;',
);
$anchor->setAttribute('href', '#');
// ^ method.call
// ^ @method.call
return $form;
}