Home
last modified time | relevance | path

Searched refs:attributes (Results 1 – 25 of 145) sorted by relevance

123456

/PHP-Parser/lib/PhpParser/
H A DNodeAbstract.php7 protected array $attributes; variable in PhpParser\\NodeAbstract
14 public function __construct(array $attributes = []) { argument
15 $this->attributes = $attributes;
25 return $this->attributes['startLine'] ?? -1;
37 return $this->attributes['startLine'] ?? -1;
49 return $this->attributes['endLine'] ?? -1;
108 return $this->attributes['comments'] ?? [];
152 $this->attributes[$key] = $value;
161 return $this->attributes[$key];
168 return $this->attributes;
[all …]
H A DError.php8 protected array $attributes; variable in PhpParser\\Error
16 public function __construct(string $message, array $attributes = []) { argument
18 $this->attributes = $attributes;
38 return $this->attributes['startLine'] ?? -1;
48 return $this->attributes['endLine'] ?? -1;
57 return $this->attributes;
65 public function setAttributes(array $attributes): void { argument
66 $this->attributes = $attributes;
86 $this->attributes['startLine'] = $line;
96 return isset($this->attributes['startFilePos'], $this->attributes['endFilePos']);
[all …]
/PHP-Parser/lib/PhpParser/Node/Scalar/
H A DInt_.php24 public function __construct(int $value, array $attributes = []) { argument
25 $this->attributes = $attributes;
43 $attributes['rawValue'] = $str;
48 $attributes['kind'] = Int_::KIND_DEC;
49 return new Int_((int) $str, $attributes);
53 $attributes['kind'] = Int_::KIND_HEX;
54 return new Int_(hexdec($str), $attributes);
58 $attributes['kind'] = Int_::KIND_BIN;
59 return new Int_(bindec($str), $attributes);
72 $attributes['kind'] = Int_::KIND_OCT;
[all …]
H A DFloat_.php17 public function __construct(float $value, array $attributes = []) { argument
18 $this->attributes = $attributes;
27 * @param mixed[] $attributes
29 public static function fromString(string $str, array $attributes = []): Float_ { argument
30 $attributes['rawValue'] = $str;
33 return new Float_($float, $attributes);
H A DMagicConst.php13 public function __construct(array $attributes = []) { argument
14 $this->attributes = $attributes;
/PHP-Parser/bin/
H A Dphp-parse18 list($operations, $files, $attributes) = parseArgs($argv);
29 $parser = (new PhpParser\ParserFactory())->createForVersion($attributes['version']);
32 'dumpPositions' => $attributes['with-positions'],
56 if ($attributes['with-recovery']) {
60 $message = formatErrorMessage($error, $code, $attributes['with-column-info']);
70 $message = formatErrorMessage($error, $code, $attributes['with-column-info']);
140 $attributes = [
177 $attributes['with-column-info'] = true;
181 $attributes['with-positions'] = true;
185 $attributes['with-recovery'] = true;
[all …]
/PHP-Parser/lib/PhpParser/Node/
H A DVariadicPlaceholder.php16 public function __construct(array $attributes = []) { argument
17 $this->attributes = $attributes;
H A DAttributeGroup.php15 public function __construct(array $attrs, array $attributes = []) { argument
16 $this->attributes = $attributes;
H A DIntersectionType.php15 public function __construct(array $types, array $attributes = []) { argument
16 $this->attributes = $attributes;
H A DUnionType.php15 public function __construct(array $types, array $attributes = []) { argument
16 $this->attributes = $attributes;
/PHP-Parser/lib/PhpParser/Node/Expr/
H A DError.php19 public function __construct(array $attributes = []) { argument
20 $this->attributes = $attributes;
H A DCast.php17 public function __construct(Expr $expr, array $attributes = []) { argument
18 $this->attributes = $attributes;
H A DIsset_.php17 public function __construct(array $vars, array $attributes = []) { argument
18 $this->attributes = $attributes;
H A DVariable.php17 public function __construct($name, array $attributes = []) { argument
18 $this->attributes = $attributes;
H A DPostDec.php17 public function __construct(Expr $var, array $attributes = []) { argument
18 $this->attributes = $attributes;
H A DPostInc.php17 public function __construct(Expr $var, array $attributes = []) { argument
18 $this->attributes = $attributes;
/PHP-Parser/lib/PhpParser/Node/Stmt/
H A DConst_.php17 public function __construct(array $consts, array $attributes = []) { argument
18 $this->attributes = $attributes;
H A DEcho_.php17 public function __construct(array $exprs, array $attributes = []) { argument
18 $this->attributes = $attributes;
H A DElse_.php17 public function __construct(array $stmts = [], array $attributes = []) { argument
18 $this->attributes = $attributes;
H A DFinally_.php17 public function __construct(array $stmts = [], array $attributes = []) { argument
18 $this->attributes = $attributes;
H A DGlobal_.php17 public function __construct(array $vars, array $attributes = []) { argument
18 $this->attributes = $attributes;
H A DUnset_.php17 public function __construct(array $vars, array $attributes = []) { argument
18 $this->attributes = $attributes;
H A DHaltCompiler.php17 public function __construct(string $remaining, array $attributes = []) { argument
18 $this->attributes = $attributes;
H A DInlineHTML.php17 public function __construct(string $value, array $attributes = []) { argument
18 $this->attributes = $attributes;
H A DBlock.php17 public function __construct(array $stmts, array $attributes = []) { argument
18 $this->attributes = $attributes;

Completed in 34 milliseconds

123456