Home
last modified time | relevance | path

Searched refs:Error (Results 1 – 25 of 47) sorted by relevance

12

/PHP-Parser/lib/PhpParser/ErrorHandler/
H A DCollecting.php5 use PhpParser\Error; alias
14 /** @var Error[] Collected errors */
17 public function handleError(Error $error): void {
24 * @return Error[]
H A DThrowing.php5 use PhpParser\Error; alias
14 public function handleError(Error $error): void {
/PHP-Parser/test/PhpParser/ErrorHandler/
H A DThrowingTest.php5 use PhpParser\Error; alias
9 $this->expectException(Error::class);
12 $errorHandler->handleError(new Error('Test'));
H A DCollectingTest.php5 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 DErrorTest.php11 $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 DCodeParsingTest.php57 private function formatErrorMessage(Error $e, $code) {
91 if (!$node instanceof Stmt\Nop && !$node instanceof Expr\Error &&
H A DParserTestAbstract.php15 $this->expectException(Error::class);
22 $this->expectException(Error::class);
29 $this->expectException(Error::class);
/PHP-Parser/lib/PhpParser/
H A DErrorHandler.php9 * @param Error $error The error that needs to be handled
11 public function handleError(Error $error): void;
H A DModifiers.php56 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 Dcompatibility_tokens.php35 throw new \Error(sprintf(
43 throw new \Error(sprintf(
H A DParserAbstract.php327 } 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 DLexer.php52 $errorHandler->handleError(new Error($errorMsg, [
105 $errorHandler->handleError(new Error('Unterminated comment', [
/PHP-Parser/lib/PhpParser/Node/Expr/
H A DClassConstFetch.php13 /** @var Identifier|Expr|Error Constant name */
20 * @param string|Identifier|Expr|Error $name Constant name
H A DError.php13 class Error extends Expr { class
/PHP-Parser/doc/component/
H A DError_handling.markdown1 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 DJSON_representation.markdown27 } catch (PhpParser\Error $e) {
28 echo 'Parse Error: ', $e->getMessage();
/PHP-Parser/tools/fuzzing/
H A Dtarget.php115 } 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 DerrorSuppress.test1 Error suppression
/PHP-Parser/lib/PhpParser/Node/Scalar/
H A DInt_.php5 use PhpParser\Error; alias
63 throw new Error('Invalid numeric literal', $attributes);
H A DString_.php5 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 DeofError.test1 Error positions
/PHP-Parser/doc/
H A DREADME.md32 * [Error handling](component/Error_handling.markdown)
34 * Error recovery (parsing of syntactically incorrect code)
/PHP-Parser/bin/
H A Dphp-parse69 } catch (PhpParser\Error $error) {
96 function formatErrorMessage(PhpParser\Error $e, $code, $withColumnInfo) {
/PHP-Parser/
H A DREADME.md41 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 Drun.php224 } catch (PhpParser\Error $e) {
232 } catch (PhpParser\Error $e) {

Completed in 23 milliseconds

12