Mercurial > hg > isophonics-drupal-site
comparison vendor/nikic/php-parser/lib/PhpParser/ParserAbstract.php @ 16:c2387f117808
Routine composer update
author | Chris Cannam |
---|---|
date | Tue, 10 Jul 2018 15:07:59 +0100 |
parents | 5fb285c0d0e3 |
children | 129ea1e6d783 |
comparison
equal
deleted
inserted
replaced
15:e200cb7efeb3 | 16:c2387f117808 |
---|---|
107 /** @var array Start attributes of last *read* token */ | 107 /** @var array Start attributes of last *read* token */ |
108 protected $lookaheadStartAttributes; | 108 protected $lookaheadStartAttributes; |
109 | 109 |
110 /** @var ErrorHandler Error handler */ | 110 /** @var ErrorHandler Error handler */ |
111 protected $errorHandler; | 111 protected $errorHandler; |
112 /** @var Error[] Errors collected during last parse */ | |
113 protected $errors; | |
114 /** @var int Error state, used to avoid error floods */ | 112 /** @var int Error state, used to avoid error floods */ |
115 protected $errorState; | 113 protected $errorState; |
116 | 114 |
117 /** | 115 /** |
118 * Initialize $reduceCallbacks map. | 116 * Initialize $reduceCallbacks map. |
127 * @param Lexer $lexer A lexer | 125 * @param Lexer $lexer A lexer |
128 * @param array $options Options array. | 126 * @param array $options Options array. |
129 */ | 127 */ |
130 public function __construct(Lexer $lexer, array $options = []) { | 128 public function __construct(Lexer $lexer, array $options = []) { |
131 $this->lexer = $lexer; | 129 $this->lexer = $lexer; |
132 $this->errors = []; | |
133 | 130 |
134 if (isset($options['throwOnError'])) { | 131 if (isset($options['throwOnError'])) { |
135 throw new \LogicException( | 132 throw new \LogicException( |
136 '"throwOnError" is no longer supported, use "errorHandler" instead'); | 133 '"throwOnError" is no longer supported, use "errorHandler" instead'); |
137 } | 134 } |