private function getLocationCoordinates(Lexer $lexer, bool $end = false, string $content = '') : array
    {
        $lineNumber  = $lexer->yylineno;
        $lineContent = $this->fileLines[$lineNumber];

        if ('' === $content) {
            $content = $lexer->yytext;
        }

        $position = mb_strpos($lineContent, $content);

        if (true === $end) {
            $position += mb_strlen($content);
        }

        return ['line' => $lineNumber + 1, 'column' => $position];
    }