Home
last modified time | relevance | path

Searched refs:param (Results 1 – 14 of 14) sorted by relevance

/PHP-Parser/test/code/prettyPrinter/stmt/
H A Dparam_comments.test8 $param
15 $param
21 $param
27 $param
41 $param
47 $param
52 $param
67 $param
73 $param
79 $param
[all …]
H A Dattributes.test18 #[A7] $param,
41 public function m(#[A7] $param)
/PHP-Parser/lib/PhpParser/Builder/
H A DFunctionLike.php34 public function addParam($param) { argument
35 $param = BuilderHelpers::normalizeNode($param);
37 if (!$param instanceof Node\Param) {
38 … throw new \LogicException(sprintf('Expected parameter node, got "%s"', $param->getType()));
41 $this->params[] = $param;
54 foreach ($params as $param) {
55 $this->addParam($param);
/PHP-Parser/test/PhpParser/
H A DNodeVisitorForTesting.php31 private function traceEvent(string $method, $param) { argument
32 $this->trace[] = [$method, $param];
35 if ($currentReturn[0] === $method && $currentReturn[1] === $param) {
H A DParserTestAbstract.php68 $param = $fn->params[0];
69 $this->assertInstanceOf(Node\Param::class, $param);
77 ], $param->getAttributes());
H A DBuilderFactoryTest.php299 ->addParam($factory->param('someParam')->setType('SomeClass'))
308 ->addParam($factory->param('someParam')
/PHP-Parser/test/PhpParser/Node/Stmt/
H A DClassMethodTest.php99 $param = new Param(new Variable('a'));
104 'params' => [$param],
110 $this->assertSame([$param], $method->getParams());
/PHP-Parser/lib/PhpParser/NodeVisitor/
H A DNameResolver.php114 foreach ($node->params as $param) {
115 $param->type = $this->resolveType($param->type);
116 $this->resolveAttrGroups($param);
184 foreach ($node->params as $param) {
185 $param->type = $this->resolveType($param->type);
186 $this->resolveAttrGroups($param);
/PHP-Parser/grammar/
H A DphpyLang.php44 foreach ($params as $param) {
45 $paramCode .= $param . ', ';
/PHP-Parser/doc/component/
H A DJSON_representation.markdown15 /** @param string $msg */
43 "text": "\/** @param string $msg *\/",
H A DAST_builders.markdown52 ->addParam($factory->param('someParam')->setType('SomeClass'))
56 * @param SomeClass And takes a parameter
62 ->addParam($factory->param('someParam')->setDefault('test'))
103 * @param SomeClass And takes a parameter
H A DLexer.markdown54 /** @param int|string|(int|string)[] $kind Token ID or text (or array of them) */
90 /** @param PhpParser\Token[] $tokens */
/PHP-Parser/test/code/parser/stmt/
H A Dattributes.test18 #[A7] $param,
159 name: param
/PHP-Parser/lib/PhpParser/
H A DBuilderFactory.php128 public function param(string $name): Builder\Param { function in PhpParser\\BuilderFactory

Completed in 18 milliseconds