Author: Elliot Levin (elliotlevin@hotmail.com)
Inheritance: extends InvalidFunctionException
Example #1
0
 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'));
     }
 }