Lines Matching refs:attributes
8 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']);
109 return $this->toColumn($code, $this->attributes['startFilePos']);
122 return $this->toColumn($code, $this->attributes['endFilePos']);