src/Cortex/Node.php
protected function determineComment()
    {
        if (starts_with($this->source, '//')) {
            $this->isInterrupted = true;
        } elseif (starts_with($this->source, '#')) {
            log_warning('Using the # symbol for comments is deprecated');
            $this->isInterrupted = true;
        } elseif (starts_with($this->source, '/*')) {
            if (ends_with($this->source, '*/')) {
                return;
            }
            $this->isComment = true;
        } elseif (ends_with($this->source, '*/')) {
            $this->isComment = false;
        }
    }
protected function determineComment()
    {
        if (starts_with($this->source, '//')) {
            $this->isInterrupted = true;
        } elseif (starts_with($this->source, '#')) {
            log_warning('Using the # symbol for comments is deprecated');
            $this->isInterrupted = true;
        } elseif (starts_with($this->source, '/*')) {
            if (ends_with($this->source, '*/')) {
                return;
            }
            $this->isComment = true;
        } elseif (ends_with($this->source, '*/')) {
            $this->isComment = false;
        }
    }
protected function determineComment ( ) { if ( starts_with ( $ this -> source , '//' ) ) { $ this -> isInterrupted = true ; } elseif ( starts_with ( $ this -> source , '#' ) ) { log_warning ( 'Using the # symbol for comments is deprecated' ) ; $ this -> isInterrupted = true ; } elseif ( starts_with ( $ this -> source , '/*' ) ) { if ( ends_with ( $ this -> source , '*/' ) ) { return ; } $ this -> isComment = true ; } elseif ( ends_with ( $ this -> source , '*/' ) ) { $ this -> isComment = false ; } }
Determine if the current node source is a comment.

@return void
Determine if the current node source is a comment .