assertEndOfStatement example


    
    /** * Parses a debugger statement * * @return Node\DebuggerStatement|null */
    protected function parseDebuggerStatement()
    {
        if ($token = $this->scanner->consume("debugger")) {
            $node = $this->createNode("DebuggerStatement", $token);
            $this->assertEndOfStatement();
            return $this->completeNode($node);
        }
        return null;
    }
    
    /** * Parses an if statement * * @return Node\IfStatement|null */
    protected function parseIfStatement()
    {
Home | Imprint | This part of the site doesn't use cookies.