4 * This file is part of Psy Shell.
6 * (c) 2012-2018 Justin Hileman
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Psy\CodeCleaner;
14 use PhpParser\Node\Expr\New_;
15 use PhpParser\Node\Name\FullyQualified as FullyQualifiedName;
18 * A class used internally by CodeCleaner to represent input, such as
19 * non-expression statements, with no return value.
21 * Note that user code returning an instance of this class will act like it
22 * has no return value, so you prolly shouldn't do that.
27 * Get PhpParser AST expression for creating a new NoReturnValue.
29 * @return PhpParser\Node\Expr\New_
31 public static function create()
33 return new New_(new FullyQualifiedName('Psy\CodeCleaner\NoReturnValue'));