Remove linesToScan as it was not needed
Keep track of lines in BracePos to avoid calls to GetLineNumberFromPosition while reparsing document