From fee50a6dbc6132fb8a3cdf3596db0cd161cb9045 Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Mon, 16 Feb 2015 14:59:22 -0800 Subject: [PATCH] Made the actual implementation of the lexical classifier be non-optional. --- src/services/services.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/services/services.ts b/src/services/services.ts index 0a901f0df0b..6e3cdf0a344 100644 --- a/src/services/services.ts +++ b/src/services/services.ts @@ -5680,7 +5680,7 @@ module ts { keyword2 === SyntaxKind.ConstructorKeyword || keyword2 === SyntaxKind.StaticKeyword) { - // Allow things like "public get", "public constructor" and "public static". + // Allow things like "public get", "public constructor" and "public static". // These are all legal. return true; } @@ -5697,7 +5697,7 @@ module ts { // If there is a syntactic classifier ('syntacticClassifierAbsent' is false), // we will be more conservative in order to avoid conflicting with the syntactic classifier. - function getClassificationsForLine(text: string, lexState: EndOfLineState, syntacticClassifierAbsent?: boolean): ClassificationResult { + function getClassificationsForLine(text: string, lexState: EndOfLineState, syntacticClassifierAbsent: boolean): ClassificationResult { var offset = 0; var token = SyntaxKind.Unknown; var lastNonTriviaToken = SyntaxKind.Unknown;