From 585c6aaf65ac504f535fb10c9bb76d3f4cc1da14 Mon Sep 17 00:00:00 2001 From: Cyrus Najmabadi Date: Wed, 8 Apr 2015 23:24:51 -0700 Subject: [PATCH] CR feedback. --- src/services/services.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/services/services.ts b/src/services/services.ts index c4ba411f027..c988ba2a818 100644 --- a/src/services/services.ts +++ b/src/services/services.ts @@ -4154,9 +4154,9 @@ module ts { } /** - * Aggregates all throw-statements within this node *without* crossing - * into function boundaries and try-blocks with catch-clauses. - */ + * Aggregates all throw-statements within this node *without* crossing + * into function boundaries and try-blocks with catch-clauses. + */ function aggregateOwnedThrowStatements(node: Node): ThrowStatement[] { let statementAccumulator: ThrowStatement[] = [] aggregate(node); @@ -4562,17 +4562,17 @@ module ts { let elseKeyword = keywords[i]; let ifKeyword = keywords[i + 1]; // this *should* always be an 'if' keyword. - let shouldHighlightNextKeyword = true; + let shouldCombindElseAndIf = true; // Avoid recalculating getStart() by iterating backwards. for (let j = ifKeyword.getStart() - 1; j >= elseKeyword.end; j--) { if (!isWhiteSpace(sourceFile.text.charCodeAt(j))) { - shouldHighlightNextKeyword = false; + shouldCombindElseAndIf = false; break; } } - if (shouldHighlightNextKeyword) { + if (shouldCombindElseAndIf) { result.push({ fileName: fileName, textSpan: createTextSpanFromBounds(elseKeyword.getStart(), ifKeyword.end),