Home
last modified time | relevance | path

Searched refs:node (Results 1 – 25 of 84) sorted by relevance

1234

/template/twigstarter/vendor/twig/twig/src/NodeVisitor/
H A DSandboxNodeVisitor.php49 return $node;
52 if ($node->getNodeTag() && !isset($this->tags[$node->getNodeTag()])) {
53 $this->tags[$node->getNodeTag()] = $node;
58 $this->filters[$node->getNode('filter')->getAttribute('value')] = $node;
63 $this->functions[$node->getAttribute('name')] = $node;
76 if ($node instanceof SetNode && !$node->getAttribute('capture')) {
96 return $node;
107 if ($node instanceof PrintNode || $node instanceof SetNode) {
112 return $node;
117 $expr = $node->getNode($name);
[all …]
H A DOptimizerNodeVisitor.php69 return $node;
79 $node = $this->optimizeRawFilter($node, $env);
82 $node = $this->optimizePrintNode($node, $env);
84 return $node;
97 return $node;
110 return $node;
118 …if ($node instanceof FilterExpression && 'raw' == $node->getNode('filter')->getAttribute('value'))…
122 return $node;
144 elseif ($node instanceof NameExpression && 'loop' === $node->getAttribute('name')) {
155 elseif ($node instanceof BlockReferenceNode || $node instanceof BlockReferenceExpression) {
[all …]
H A DSafeAnalysisNodeVisitor.php36 public function getSafe(Node $node) argument
38 $hash = spl_object_hash($node);
44 if ($bucket['key'] !== $node) {
58 $hash = spl_object_hash($node);
69 'key' => $node,
76 return $node;
83 $this->setSafe($node, ['all']);
93 $this->setSafe($node, $safe);
123 …} elseif ($node instanceof GetAttrExpression && $node->getNode('node') instanceof NameExpression) {
131 $this->setSafe($node, []);
[all …]
H A DEscaperNodeVisitor.php49 if ($node instanceof ModuleNode) {
63 return $node;
68 if ($node instanceof ModuleNode) {
83 if ($node instanceof AutoEscapeNode || $node instanceof BlockNode) {
89 return $node;
124 return $node;
133 return $node;
139 return $node;
142 $class = \get_class($node);
156 $node = $filter->getNode('node');
[all …]
H A DMacroAutoImportNodeVisitor.php32 public function enterNode(Node $node, Environment $env) argument
34 if ($node instanceof ModuleNode) {
39 return $node;
42 public function leaveNode(Node $node, Environment $env) argument
44 if ($node instanceof ModuleNode) {
51 $node instanceof GetAttrExpression &&
52 $node->getNode('node') instanceof NameExpression &&
54 $node->getNode('attribute') instanceof ConstantExpression
59 …$node = new MethodCallExpression($node->getNode('node'), 'macro_'.$name, $node->getNode('arguments…
60 $node->setAttribute('safe', true);
[all …]
H A DAbstractNodeVisitor.php26 final public function enterNode(Node $node, Environment $env) argument
28 return $this->doEnterNode($node, $env);
31 final public function leaveNode(Node $node, Environment $env) argument
33 return $this->doLeaveNode($node, $env);
41 abstract protected function doEnterNode(Node $node, Environment $env); argument
48 abstract protected function doLeaveNode(Node $node, Environment $env); argument
/template/twigstarter/vendor/twig/twig/src/Node/Expression/Test/
H A DDefinedTest.php40 if ($node instanceof NameExpression) {
41 $node->setAttribute('is_defined_test', true);
42 } elseif ($node instanceof GetAttrExpression) {
43 $node->setAttribute('is_defined_test', true);
44 $this->changeIgnoreStrictCheck($node);
46 $node->setAttribute('is_defined_test', true);
47 … } elseif ($node instanceof FunctionExpression && 'constant' === $node->getAttribute('name')) {
48 $node->setAttribute('is_defined_test', true);
49 } elseif ($node instanceof ConstantExpression || $node instanceof ArrayExpression) {
50 $node = new ConstantExpression(true, $node->getTemplateLine());
[all …]
/template/twigstarter/vendor/twig/twig/src/Profiler/NodeVisitor/
H A DProfilerNodeVisitor.php41 return $node;
46 if ($node instanceof ModuleNode) {
47 …$node->setNode('display_start', new Node([new EnterProfileNode($this->extensionName, Profile::TEMP…
48 …$node->setNode('display_end', new Node([new LeaveProfileNode($this->varName), $node->getNode('disp…
49 } elseif ($node instanceof BlockNode) {
50 $node->setNode('body', new BodyNode([
52 $node->getNode('body'),
55 } elseif ($node instanceof MacroNode) {
56 $node->setNode('body', new BodyNode([
58 $node->getNode('body'),
[all …]
/template/twigstarter/vendor/twig/twig/src/
H A DParser.php118 $node = $traverser->traverse($node);
125 return $node;
186 $rv[] = $node;
244 $this->macros[$name] = $node;
338 ($node instanceof TextNode && !ctype_space($node->getAttribute('data')))
341 …(!$node instanceof TextNode && !$node instanceof BlockReferenceNode && ($node instanceof NodeOutpu…
357 return $node;
376 if ($node instanceof NodeOutputInterface && !$node instanceof SpacelessNode) {
382 … $nested = $nested || ('Twig_Node' !== \get_class($node) && Node::class !== \get_class($node));
383 foreach ($node as $k => $n) {
[all …]
H A DExpressionParser.php314 $expr = new ConcatBinary($expr, $node, $node->getTemplateLine());
342 return $node;
395 return $node;
404 $node = $this->parseSubscriptExpression($node);
406 $node = $this->parseFilterExpression($node);
415 return $node;
504 return $node;
565 $node = new $class($node, $name, $arguments, $token->getLine(), $tag);
574 return $node;
814 if (!($node instanceof ConstantExpression || $node instanceof ArrayExpression
[all …]
H A DNodeTraverser.php48 public function traverse(Node $node): Node argument
53 $node = $this->traverseForVisitor($visitor, $node);
57 return $node;
63 private function traverseForVisitor(NodeVisitorInterface $visitor, Node $node) argument
65 $node = $visitor->enterNode($node, $this->env);
67 foreach ($node as $k => $n) {
70 $node->setNode($k, $m);
77 $node->removeNode($k);
81 return $visitor->leaveNode($node, $this->env);
H A DCompiler.php65 public function compile(Node $node, $indentation = 0) argument
76 $node->compile($this);
81 public function subcompile(Node $node, $raw = true) argument
87 $node->compile($this);
182 public function addDebugInfo(Node $node) argument
184 if ($node->getTemplateLine() != $this->lastLine) {
185 $this->write(sprintf("// line %d\n", $node->getTemplateLine()));
189 $this->debugInfo[$this->sourceLine] = $node->getTemplateLine();
191 $this->lastLine = $node->getTemplateLine();
/template/twigstarter/vendor/twig/twig/src/Node/Expression/Filter/
H A DDefaultFilter.php32 …public function __construct(Node $node, ConstantExpression $filterName, Node $arguments, int $line… argument
34 …$default = new FilterExpression($node, new ConstantExpression('default', $node->getTemplateLine())…
36 …f ('default' === $filterName->getAttribute('value') && ($node instanceof NameExpression || $node i…
37 $test = new DefinedTest(clone $node, 'defined', new Node(), $node->getTemplateLine());
38 …$false = \count($arguments) ? $arguments->getNode(0) : new ConstantExpression('', $node->getTempla…
40 $node = new ConditionalExpression($test, $default, $false, $node->getTemplateLine());
42 $node = $default;
45 parent::__construct($node, $filterName, $arguments, $lineno, $tag);
/template/twigstarter/vendor/twig/twig/src/Node/
H A DNode.php41 foreach ($nodes as $name => $node) {
42 if (!$node instanceof self) {
43 …a \Twig\Node\Node instance.', \is_object($node) ? \get_class($node) : (null === $node ? 'null' : \…
62 foreach ($this->nodes as $name => $node) {
82 foreach ($this->nodes as $node) {
83 $node->compile($compiler);
151 public function setNode($name, self $node) argument
153 $this->nodes[$name] = $node;
190 foreach ($this->nodes as $node) {
203 foreach ($this->nodes as $node) {
[all …]
H A DModuleNode.php193 $node = $trait->getNode('template');
196 ->addDebugInfo($node)
198 ->subcompile($node)
200 ->repr($node->getTemplateName())
395 foreach ($nodes as $node) {
396 if (!\count($node)) {
400 if ($node instanceof TextNode && ctype_space($node->getAttribute('data'))) {
456 if ($node instanceof ConstantExpression) {
459 ->subcompile($node)
461 ->repr($node->getTemplateName())
[all …]
/template/mikio/inc/
H A Dsimple_html_dom.php123 function dump_html_tree($node, $show_attr = true, $deep = 0) argument
125 $node->dump($node);
179 foreach ($this->nodes as $node) {
180 $node->dump($show_attr, $depth + 1);
219 if (isset($node->_[HDOM_INFO_INNER])) {
220 $string .= "'" . $node->_[HDOM_INFO_INNER] . "'";
241 // It fails to unset the current node from it's current parents nodes or
435 // In rare cases, (always node type 1 or HDOM_TYPE_ELEMENT - observed
449 // If this node i
1291 removeChild($node) global() argument
1382 appendChild($node) global() argument
2089 parse_attr($node, $name, & $space) global() argument
2137 link_nodes(& $node, $is_child) global() argument
[all...]
/template/bootstrap3/inc/
H A Dsimple_html_dom.php126 function dump_html_tree($node, $show_attr = true, $deep = 0) argument
128 $node->dump($node);
182 foreach ($this->nodes as $node) {
183 $node->dump($show_attr, $depth + 1);
222 if (isset($node->_[HDOM_INFO_INNER])) {
223 $string .= "'" . $node->_[HDOM_INFO_INNER] . "'";
244 // It fails to unset the current node from it's current parents nodes or
438 // In rare cases, (always node type 1 or HDOM_TYPE_ELEMENT - observed
452 // If this node i
1287 removeChild($node) global() argument
1378 appendChild($node) global() argument
2083 parse_attr($node, $name, & $space) global() argument
2131 link_nodes(& $node, $is_child) global() argument
[all...]
/template/twigstarter/vendor/twig/twig/src/TokenParser/
H A DForTokenParser.php91 private function checkLoopUsageCondition(TokenStream $stream, Node $node) argument
93 …if ($node instanceof GetAttrExpression && $node->getNode('node') instanceof NameExpression && 'loo…
94 …yntaxError('The "loop" variable cannot be used in a looping condition.', $node->getTemplateLine(),…
97 foreach ($node as $n) {
108 private function checkLoopUsageBody(TokenStream $stream, Node $node) argument
110 …if ($node instanceof GetAttrExpression && $node->getNode('node') instanceof NameExpression && 'loo…
111 $attribute = $node->getNode('attribute');
113 …ned when looping with a condition.', $attribute->getAttribute('value')), $node->getTemplateLine(),…
118 if ($node instanceof ForNode) {
122 foreach ($node as $n) {
H A DSandboxTokenParser.php40 foreach ($body as $node) {
41 if ($node instanceof TextNode && ctype_space($node->getAttribute('data'))) {
45 if (!$node instanceof IncludeNode) {
46 …ntaxError('Only "include" tags are allowed within a "sandbox" section.', $node->getTemplateLine(),…
/template/simple/
H A Dcsshover3.htc145 patch:function(node, type, className) {
151 if(node.style[property]) {
152 node.style[property] = null;
156 if(!node.csshover) node.csshover = [];
159 if(!node.csshover[className]) {
160 node.csshover[className] = true;
215 this.node = node;
221 this.deactivator = function(){ node.className = node.className.replace(replacer, ' '); };
239 this.node = null;
249 return function(node, type, className) {
[all …]
/template/a_new_day/
H A Dcsshover3.htc145 patch:function(node, type, className) {
151 if(node.style[property]) {
152 node.style[property] = null;
156 if(!node.csshover) node.csshover = [];
159 if(!node.csshover[className]) {
160 node.csshover[className] = true;
215 this.node = node;
221 this.deactivator = function(){ node.className = node.className.replace(replacer, ' '); };
239 this.node = null;
249 return function(node, type, className) {
[all …]
/template/vector/static/3rd/vector/
H A Dcsshover.htc145 patch:function(node, type, className) {
151 if(node.style[property]) {
152 node.style[property] = null;
156 if(!node.csshover) node.csshover = [];
159 if(!node.csshover[className]) {
160 node.csshover[className] = true;
215 this.node = node;
221 this.deactivator = function(){ node.className = node.className.replace(replacer, ' '); };
239 this.node = null;
249 return function(node, type, className) {
[all …]
/template/starterbootstrap/js/
H A Dsorttable.js199 getInnerText: function(node) { argument
206 if (!node) return "";
209 node.getElementsByTagName('input').length;
212 return node.getAttribute("sorttable_customkey");
215 return node.textContent.replace(/^\s+|\s+$/g, '');
218 return node.innerText.replace(/^\s+|\s+$/g, '');
221 return node.text.replace(/^\s+|\s+$/g, '');
224 switch (node.nodeType) {
226 if (node.nodeName.toLowerCase() == 'input') {
227 return node.value.replace(/^\s+|\s+$/g, '');
[all …]
/template/flat/assets/js/
H A Dhtml5shiv.js137 var node;
140 node = data.cache[nodeName].cloneNode();
142 node = (data.cache[nodeName] = data.createElem(nodeName)).cloneNode();
144 node = data.createElem(nodeName);
154 …return node.canHaveChildren && !reSkip.test(nodeName) && !node.tagUrn ? data.frag.appendChild(node
/template/twigstarter/vendor/twig/twig/src/Node/Expression/
H A DMethodCallExpression.php18 …public function __construct(AbstractExpression $node, string $method, ArrayExpression $arguments, … argument
20 …parent::__construct(['node' => $node, 'arguments' => $arguments], ['method' => $method, 'safe' => …
22 if ($node instanceof NameExpression) {
23 $node->setAttribute('always_defined', true);

1234