Pinq\Parsing\PhpParser\AST::verifyNotControlStructure PHP Метод

verifyNotControlStructure() приватный Метод

private verifyNotControlStructure ( PhpParser\Node\Stmt $node )
$node PhpParser\Node\Stmt
    private function verifyNotControlStructure(Node\Stmt $node)
    {
        $nodeType = str_replace('Stmt_', '', $node->getType());
        if (isset(self::$constructStructureMap[$nodeType])) {
            throw ASTException::containsControlStructure(self::$constructStructureMap[$nodeType], $node->getAttribute('startLine'));
        }
    }