function getLineStartIndex(token, prevToken) {
    // if we have next token on the same line - get index right before that token
    if (token.loc.start.line === prevToken.loc.end.line) {
      return prevToken.range[1]
    }

    return sourceCode.getIndexFromLoc({
      line: token.loc.start.line,
      column: 0
    })
  }
Get position of the beginning of the token's line(or prevToken end if no line)
@param {ASTNode|Token} token
@param {ASTNode|Token} prevToken