Searched refs:attrs (Results 1 – 13 of 13) sorted by relevance
/PHP-Parser/lib/PhpParser/Node/ |
H A D | AttributeGroup.php | 9 public array $attrs; variable in PhpParser\\Node\\AttributeGroup 12 * @param Attribute[] $attrs PHP attributes 15 public function __construct(array $attrs, array $attributes = []) { argument 17 $this->attrs = $attrs;
|
/PHP-Parser/test/code/parser/stmt/ |
H A D | attributes.test | 38 attrs: array( 101 attrs: array( 123 attrs: array( 143 attrs: array( 173 attrs: array( 202 attrs: array( 224 attrs: array( 249 attrs: array( 280 attrs: array( 310 attrs: array( [all …]
|
H A D | newInInitializer.test | 86 attrs: array(
|
/PHP-Parser/lib/PhpParser/Lexer/ |
H A D | Emulative.php | 199 $attrs = $error->getAttributes(); 205 if ($patchPos >= $attrs['startFilePos']) { 219 $attrs['startFilePos'] += $posDelta; 220 $attrs['endFilePos'] += $posDelta; 221 $attrs['startLine'] += $lineDelta; 222 $attrs['endLine'] += $lineDelta; 223 $error->setAttributes($attrs);
|
/PHP-Parser/test/PhpParser/Lexer/ |
H A D | EmulativeTest.php | 170 $attrs = $error->getAttributes(); 173 $this->assertSame($expPos, $attrs['startFilePos']); 174 $this->assertSame($expPos, $attrs['endFilePos']); 175 $this->assertSame($expLine, $attrs['startLine']); 176 $this->assertSame($expLine, $attrs['endLine']);
|
/PHP-Parser/lib/PhpParser/ |
H A D | ParserAbstract.php | 635 $attrs = $node->getAttributes(); 637 if (isset($attrs['startLine'])) { 638 $attrs['endLine'] = $attrs['startLine']; 640 if (isset($attrs['startTokenPos'])) { 641 $attrs['endTokenPos'] = $attrs['startTokenPos']; 643 if (isset($attrs['startFilePos'])) { 644 $attrs['endFilePos'] = $attrs['startFilePos'] + \strlen('namespace') - 1; 646 return $attrs; 1214 protected function createExitExpr(string $name, int $namePos, array $args, array $attrs): Expr { argument 1218 return new Expr\Exit_(\count($args) === 1 ? $args[0]->value : null, $attrs); [all …]
|
/PHP-Parser/grammar/ |
H A D | php.y | 1073 { $attrs = attributes(); 1074 $attrs['kind'] = $this->getFloatCastKind($1); 1075 $$ = new Expr\Cast\Double($2, $attrs); } 1225 { $attrs = attributes(); $attrs['kind'] = Expr\Array_::KIND_SHORT; 1226 $$ = new Expr\Array_($2, $attrs); } 1231 { $attrs = attributes(); $attrs['kind'] = Expr\Array_::KIND_LONG; 1232 $$ = new Expr\Array_($3, $attrs); 1238 { $attrs = attributes(); $attrs['kind'] = Scalar\String_::KIND_DOUBLE_QUOTED; 1386 $attrs = $this->createEmptyElemAttributes($this->tokenPos); 1387 $$ = new Node\ArrayItem(new Expr\Error($attrs), null, false, $attrs); } [all …]
|
/PHP-Parser/test/code/formatPreservation/ |
H A D | attributes.test | 166 $stmts[0]->attrGroups[0]->attrs[] = $attr; 167 $stmts[1]->attrGroups[0]->attrs[] = $attr;
|
/PHP-Parser/test/code/parser/expr/ |
H A D | firstClassCallables.test | 86 attrs: array(
|
/PHP-Parser/lib/PhpParser/Parser/ |
H A D | Php7.php | 2369 …$attrs = $self->getAttributes($self->tokenStartStack[$stackPos-(2-1)], $self->tokenEndStack[$stack… 2370 $attrs['kind'] = $self->getFloatCastKind($self->semStack[$stackPos-(2-1)]); 2371 $self->semValue = new Expr\Cast\Double($self->semStack[$stackPos-(2-2)], $attrs); 2565 …$attrs = $self->getAttributes($self->tokenStartStack[$stackPos-(3-1)], $self->tokenEndStack[$stack… 2566 $self->semValue = new Expr\Array_($self->semStack[$stackPos-(3-2)], $attrs); 2569 …$attrs = $self->getAttributes($self->tokenStartStack[$stackPos-(4-1)], $self->tokenEndStack[$stack… 2570 $self->semValue = new Expr\Array_($self->semStack[$stackPos-(4-3)], $attrs); 2580 …$attrs = $self->getAttributes($self->tokenStartStack[$stackPos-(3-1)], $self->tokenEndStack[$stack… 2735 $attrs = $self->createEmptyElemAttributes($self->tokenPos); 2736 $self->semValue = new Node\ArrayItem(new Expr\Error($attrs), null, false, $attrs); [all …]
|
H A D | Php8.php | 2371 …$attrs = $self->getAttributes($self->tokenStartStack[$stackPos-(2-1)], $self->tokenEndStack[$stack… 2372 $attrs['kind'] = $self->getFloatCastKind($self->semStack[$stackPos-(2-1)]); 2373 $self->semValue = new Expr\Cast\Double($self->semStack[$stackPos-(2-2)], $attrs); 2567 …$attrs = $self->getAttributes($self->tokenStartStack[$stackPos-(3-1)], $self->tokenEndStack[$stack… 2568 $self->semValue = new Expr\Array_($self->semStack[$stackPos-(3-2)], $attrs); 2571 …$attrs = $self->getAttributes($self->tokenStartStack[$stackPos-(4-1)], $self->tokenEndStack[$stack… 2572 $self->semValue = new Expr\Array_($self->semStack[$stackPos-(4-3)], $attrs); 2582 …$attrs = $self->getAttributes($self->tokenStartStack[$stackPos-(3-1)], $self->tokenEndStack[$stack… 2731 $attrs = $self->createEmptyElemAttributes($self->tokenPos); 2732 $self->semValue = new Node\ArrayItem(new Expr\Error($attrs), null, false, $attrs); [all …]
|
/PHP-Parser/lib/PhpParser/NodeVisitor/ |
H A D | NameResolver.php | 263 foreach ($attrGroup->attrs as $attr) {
|
/PHP-Parser/lib/PhpParser/PrettyPrinter/ |
H A D | Standard.php | 78 return '#[' . $this->pCommaSeparated($node->attrs) . ']';
|
Completed in 47 milliseconds