Searched refs:errors (Results 1 – 13 of 13) sorted by relevance
/PHP-Parser/lib/PhpParser/ErrorHandler/ |
H A D | Collecting.php | 15 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 D | Emulative.php | 88 $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 D | LexerTest.php | 24 $errors = $errorHandler->getErrors(); 26 $this->assertCount(count($messages), $errors); 28 $this->assertSame($messages[$i], $errors[$i]->getMessageWithColumnInfo($code));
|
H A D | CodeParsingTest.php | 33 $errors = new ErrorHandler\Collecting(); 34 $stmts = $parser->parse($code, $errors); 37 foreach ($errors->getErrors() as $error) {
|
/PHP-Parser/doc/ |
H A D | README.md | 33 * Column information for errors 37 * Handling errors and unsupported expressions
|
H A D | 2_Usage_of_basic_components.markdown | 21 This ensures that there will be no errors when traversing highly nested node trees. However, it is
|
/PHP-Parser/ |
H A D | UPGRADE-3.0.md | 42 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 D | README.md | 217 * Column information for errors 221 * Handling errors and unsupported expressions
|
H A D | CHANGELOG.md | 989 * 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 D | numberSeparators.test | 14 // syntax errors 73 0: // syntax errors
|
/PHP-Parser/test/PhpParser/Lexer/ |
H A D | EmulativeTest.php | 164 $errors = $errorHandler->getErrors(); 165 $this->assertCount(1, $errors); 167 $error = $errors[0];
|
/PHP-Parser/doc/component/ |
H A D | Error_handling.markdown | 28 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 D | lexerErrors.test | 1 Lexer errors
|
Completed in 24 milliseconds