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')); } }