private function isCurrentTokenValidInEnclosingContexts() {
        for ($contextKind = 0; $contextKind < ParseContext::Count; $contextKind++) {
            if ($this->isInParseContext($contextKind)) {
                if ($this->isValidListElement($contextKind, $this->getCurrentToken()) || $this->isListTerminator($contextKind)) {
                    return true;
                }
            }
        }
        return false;
    }
private function isCurrentTokenValidInEnclosingContexts() {
        for ($contextKind = 0; $contextKind < ParseContext::Count; $contextKind++) {
            if ($this->isInParseContext($contextKind)) {
                if ($this->isValidListElement($contextKind, $this->getCurrentToken()) || $this->isListTerminator($contextKind)) {
                    return true;
                }
            }
        }
        return false;
    }
private function isCurrentTokenValidInEnclosingContexts ( ) { for ( $ contextKind = 0 ; $ contextKind < ParseContext :: Count ; $ contextKind ++ ) { if ( $ this -> isInParseContext ( $ contextKind ) ) { if ( $ this -> isValidListElement ( $ contextKind , $ this -> getCurrentToken ( ) ) || $ this -> isListTerminator ( $ contextKind ) ) { return true ; } } } return false ; }
Aborts parsing list when one of the parent contexts understands something
@return bool
Aborts parsing list when one of the parent contexts understands something