         for index in startFrom..<lines.count {
             let line = lines[index]
             
-            if line.range.location + line.range.length > offset {
+            if line.byteRange.location + line.byteRange.length > offset {
                 return index
             }
         }

        nonTriggeringExamples: [
            "let a = 0\nvar x = 1\n\nx = 2\n",
            "a = 5\n\nvar x = 1\n",
            "struct X {\n\tvar a = 0\n}\n"
        ],
        triggeringExamples: [
            "var x = 1\n↓x = 2\n",

        var result = Set<Int>()
        
        for statement in structure {
            guard let kind = statement.kind else {
                continue
            }
            
            switch kind {
            case SwiftDeclarationKind.varGlobal.rawValue,
                 SwiftDeclarationKind.varClass.rawValue,
                 SwiftDeclarationKind.varLocal.rawValue,
                 SwiftDeclarationKind.varInstance.rawValue:
                guard let offset = statement.offset,
                      let length = statement.length else {
                    break
                }
                let startLine = file.line(for: offset, startFrom: 0)
                let endLine = file.line(for: offset + length, startFrom: startLine)
                
                for lineNumber in startLine...endLine {
                    result.update(with: lineNumber)
                }
            default:
                break
            }
            if statement["key.substructure"] != nil {
                result.formUnion(varLetLineNumbers(file: file, structure: statement.substructure))
            }
        }
        return result
    }

    // Collects all the line numbers containing comments
    func commentLineNumbers(file: File) -> Set<Int> {
        var result = Set<Int>()
        let syntaxMap = file.syntaxMap

        for token in syntaxMap.tokens where token.type == SyntaxKind.comment.rawValue {
            let startLine = file.line(for: token.offset, startFrom: 0)
            let endLine = file.line(for: token.offset + token.length, startFrom: startLine)

            for lineNumber in startLine...endLine {
                result.update(with: lineNumber)
            }
        }
        return result
    }
