/PHP-Parser/lib/PhpParser/ErrorHandler/ |
H A D | Collecting.php | 5 use PhpParser\Error; alias 14 /** @var Error[] Collected errors */ 17 public function handleError(Error $error): void { 24 * @return Error[]
|
H A D | Throwing.php | 5 use PhpParser\Error; alias 14 public function handleError(Error $error): void {
|
/PHP-Parser/test/PhpParser/ErrorHandler/ |
H A D | ThrowingTest.php | 5 use PhpParser\Error; alias 9 $this->expectException(Error::class); 12 $errorHandler->handleError(new Error('Test'));
|
H A D | CollectingTest.php | 5 use PhpParser\Error; alias 13 $errorHandler->handleError($e1 = new Error('Test 1')); 14 $errorHandler->handleError($e2 = new Error('Test 2'));
|
/PHP-Parser/test/PhpParser/ |
H A D | ErrorTest.php | 11 $error = new Error('Some error', $attributes); 25 public function testSetMessageAndLine(Error $error): void { 35 $error = new Error('Some error'); 44 $error = new Error('Some error', [ 76 $error = new Error('Some error', ['startLine' => 3]); 96 $error = new Error('Some error', [
|
H A D | CodeParsingTest.php | 57 private function formatErrorMessage(Error $e, $code) { 91 if (!$node instanceof Stmt\Nop && !$node instanceof Expr\Error &&
|
H A D | ParserTestAbstract.php | 15 $this->expectException(Error::class); 22 $this->expectException(Error::class); 29 $this->expectException(Error::class);
|
/PHP-Parser/lib/PhpParser/ |
H A D | ErrorHandler.php | 9 * @param Error $error The error that needs to be handled 11 public function handleError(Error $error): void;
|
H A D | Modifiers.php | 56 throw new Error( 61 throw new Error('Cannot use the final modifier on an abstract class'); 73 throw new Error('Multiple access type modifiers are not allowed'); 77 throw new Error( 82 throw new Error('Cannot use the final modifier on an abstract class member');
|
H A D | compatibility_tokens.php | 35 throw new \Error(sprintf( 43 throw new \Error(sprintf(
|
H A D | ParserAbstract.php | 327 } catch (Error $e) { 741 } catch (Error $error) { 830 $this->emitError(new Error( 1022 } catch (Error $error) { 1032 } catch (Error $error) { 1040 $this->emitError(new Error( 1049 $this->emitError(new Error( 1069 $this->emitError(new Error( 1092 $this->emitError(new Error( 1133 $this->emitError(new Error( [all …]
|
H A D | Lexer.php | 52 $errorHandler->handleError(new Error($errorMsg, [ 105 $errorHandler->handleError(new Error('Unterminated comment', [
|
/PHP-Parser/lib/PhpParser/Node/Expr/ |
H A D | ClassConstFetch.php | 13 /** @var Identifier|Expr|Error Constant name */ 20 * @param string|Identifier|Expr|Error $name Constant name
|
H A D | Error.php | 13 class Error extends Expr { class
|
/PHP-Parser/doc/component/ |
H A D | Error_handling.markdown | 1 Error handling 4 Errors during parsing or analysis are represented using the `PhpParser\Error` exception class. In a… 31 Error recovery 49 // $error is an ordinary PhpParser\Error 58 The partial AST may contain `Expr\Error` nodes that indicate that an error occurred while parsing a…
|
H A D | JSON_representation.markdown | 27 } catch (PhpParser\Error $e) { 28 echo 'Parse Error: ', $e->getMessage();
|
/PHP-Parser/tools/fuzzing/ |
H A D | target.php | 115 } catch (PhpParser\Error $e) { 116 throw new Error("Failed to parse pretty printer output"); 123 throw new Error("Result after pretty printing differs"); 129 $fuzzer->setAllowedExceptions([PhpParser\Error::class]);
|
/PHP-Parser/test/code/parser/expr/ |
H A D | errorSuppress.test | 1 Error suppression
|
/PHP-Parser/lib/PhpParser/Node/Scalar/ |
H A D | Int_.php | 5 use PhpParser\Error; alias 63 throw new Error('Invalid numeric literal', $attributes);
|
H A D | String_.php | 5 use PhpParser\Error; alias 155 throw new Error('Invalid UTF-8 codepoint escape sequence: Codepoint too large');
|
/PHP-Parser/test/code/parser/errorHandling/ |
H A D | eofError.test | 1 Error positions
|
/PHP-Parser/doc/ |
H A D | README.md | 32 * [Error handling](component/Error_handling.markdown) 34 * Error recovery (parsing of syntactically incorrect code)
|
/PHP-Parser/bin/ |
H A D | php-parse | 69 } catch (PhpParser\Error $error) { 96 function formatErrorMessage(PhpParser\Error $e, $code, $withColumnInfo) {
|
/PHP-Parser/ |
H A D | README.md | 41 use PhpParser\Error; 57 } catch (Error $error) { 216 * [Error handling](doc/component/Error_handling.markdown) 218 * Error recovery (parsing of syntactically incorrect code)
|
/PHP-Parser/test_old/ |
H A D | run.php | 224 } catch (PhpParser\Error $e) { 232 } catch (PhpParser\Error $e) {
|