Home
last modified time | relevance | path

Searched refs:errors (Results 1 – 13 of 13) sorted by relevance

/PHP-Parser/lib/PhpParser/ErrorHandler/
H A DCollecting.php15 private array $errors = []; variable in PhpParser\\ErrorHandler\\Collecting
18 $this->errors[] = $error;
27 return $this->errors;
34 return !empty($this->errors);
41 $this->errors = [];
/PHP-Parser/lib/PhpParser/Lexer/
H A DEmulative.php88 $errors = $collector->getErrors();
89 if (!empty($errors)) {
90 $this->fixupErrors($errors);
91 foreach ($errors as $error) {
195 * @param Error[] $errors
197 private function fixupErrors(array $errors): void { argument
198 foreach ($errors as $error) {
/PHP-Parser/test/PhpParser/
H A DLexerTest.php24 $errors = $errorHandler->getErrors();
26 $this->assertCount(count($messages), $errors);
28 $this->assertSame($messages[$i], $errors[$i]->getMessageWithColumnInfo($code));
H A DCodeParsingTest.php33 $errors = new ErrorHandler\Collecting();
34 $stmts = $parser->parse($code, $errors);
37 foreach ($errors->getErrors() as $error) {
/PHP-Parser/doc/
H A DREADME.md33 * Column information for errors
37 * Handling errors and unsupported expressions
H A D2_Usage_of_basic_components.markdown21 This ensures that there will be no errors when traversing highly nested node trees. However, it is
/PHP-Parser/
H A DUPGRADE-3.0.md42 creating the parser, while collected errors were retrieved using the `getErrors()` method:
51 $errors = $parser->getErrors();
52 if ($errors) {
53 handleErrors($errors);
98 // If PHP 7 parse has errors but PHP 5 parse has no errors, use PHP 5 result
108 In order to support recovery from lexer errors, the signature of the `startLexing()` method changed
123 The constructors of certain nodes used to contain additional checks for semantic errors, such as
125 constructors into the parser. This allows recovery from such errors, as well as representing the
H A DREADME.md217 * Column information for errors
221 * Handling errors and unsupported expressions
H A DCHANGELOG.md989 * Added support for recovery from lexer errors.
990 * Added support for recovering from "special" errors (i.e. non-syntax parse errors).
991 * Added precise location information for lexer errors.
/PHP-Parser/test/code/parser/scalar/
H A DnumberSeparators.test14 // syntax errors
73 0: // syntax errors
/PHP-Parser/test/PhpParser/Lexer/
H A DEmulativeTest.php164 $errors = $errorHandler->getErrors();
165 $this->assertCount(1, $errors);
167 $error = $errors[0];
/PHP-Parser/doc/component/
H A DError_handling.markdown28 Both line numbers and column numbers are 1-based. EOF errors will be located at the position one pa…
38 To instead collect all encountered errors into an array, while trying to continue parsing the rest …
/PHP-Parser/test/code/parser/errorHandling/
H A DlexerErrors.test1 Lexer errors

Completed in 24 milliseconds