Lines Matching refs:node

25         $node = new FunctionExpression($name, $args, 1);
27 $this->assertEquals($name, $node->getAttribute('name'));
28 $this->assertEquals($args, $node->getNode('arguments'));
42 $node = $this->createFunction('foo');
43 $tests[] = [$node, 'foo()', $environment];
45 …$node = $this->createFunction('foo', [new ConstantExpression('bar', 1), new ConstantExpression('fo…
46 $tests[] = [$node, 'foo("bar", "foobar")', $environment];
48 $node = $this->createFunction('bar');
49 $tests[] = [$node, 'bar($this->env)', $environment];
51 $node = $this->createFunction('bar', [new ConstantExpression('bar', 1)]);
52 $tests[] = [$node, 'bar($this->env, "bar")', $environment];
54 $node = $this->createFunction('foofoo');
55 $tests[] = [$node, 'foofoo($context)', $environment];
57 $node = $this->createFunction('foofoo', [new ConstantExpression('bar', 1)]);
58 $tests[] = [$node, 'foofoo($context, "bar")', $environment];
60 $node = $this->createFunction('foobar');
61 $tests[] = [$node, 'foobar($this->env, $context)', $environment];
63 $node = $this->createFunction('foobar', [new ConstantExpression('bar', 1)]);
64 $tests[] = [$node, 'foobar($this->env, $context, "bar")', $environment];
67 $node = $this->createFunction('date', [
71 $tests[] = [$node, 'twig_date_converter($this->env, 0, "America/Chicago")'];
74 $node = $this->createFunction('barbar');
75 $tests[] = [$node, 'twig_tests_function_barbar()', $environment];
77 $node = $this->createFunction('barbar', ['foo' => new ConstantExpression('bar', 1)]);
78 … $tests[] = [$node, 'twig_tests_function_barbar(null, null, ["foo" => "bar"])', $environment];
80 $node = $this->createFunction('barbar', ['arg2' => new ConstantExpression('bar', 1)]);
81 $tests[] = [$node, 'twig_tests_function_barbar(null, "bar")', $environment];
83 $node = $this->createFunction('barbar', [
89 …$tests[] = [$node, 'twig_tests_function_barbar("1", "2", [0 => "3", "foo" => "bar"])', $environmen…
93 $node = $this->createFunction('anonymous', [new ConstantExpression('foo', 1)]);
94 …$tests[] = [$node, 'call_user_func_array($this->env->getFunction(\'anonymous\')->getCallable(), ["…