src/Annotation/Rebel.php
public function isAffected(Hint $hint): bool
    {
        return $hint->filename === $this->filename
            && $hint->type === $this->body
            && ($this->start_line - 1) <= $hint->lineno
            && $hint->lineno <= ($this->end_line + 1);
    }
public function isAffected(Hint $hint): bool
    {
        return $hint->filename === $this->filename
            && $hint->type === $this->body
            && ($this->start_line - 1) <= $hint->lineno
            && $hint->lineno <= ($this->end_line + 1);
    }
public function isAffected ( Hint $ hint ) : bool { return $ hint -> filename === $ this -> filename && $ hint -> type === $ this -> body && ( $ this -> start_line - 1 ) <= $ hint -> lineno && $ hint -> lineno <= ( $ this -> end_line + 1 ) ; }
Determine whether hint is target of annotation

It checks file name, hint type, and the range of comments.

@param Hint $hint An instance of Hint.
@return boolean If the hint is affected by this annotion, true, otherwise false.
Determine whether hint is target of annotation