@@ -973,18 +973,18 @@ module ts {
973973 getCompilerOptionsDiagnostics ( ) : Diagnostic [ ] ;
974974
975975 /**
976- * @deprecated Use getSyntacticClassifications2 instead.
976+ * @deprecated Use getEncodedSyntacticClassifications instead.
977977 */
978978 getSyntacticClassifications ( fileName : string , span : TextSpan ) : ClassifiedSpan [ ] ;
979979
980980 /**
981- * @deprecated Use getSemanticClassifications2 instead.
981+ * @deprecated Use getEncodedSemanticClassifications instead.
982982 */
983983 getSemanticClassifications ( fileName : string , span : TextSpan ) : ClassifiedSpan [ ] ;
984984
985985 // Encoded as triples of [start, length, ClassificationType].
986- getSyntacticClassifications2 ( fileName : string , span : TextSpan ) : Classifications ;
987- getSemanticClassifications2 ( fileName : string , span : TextSpan ) : Classifications ;
986+ getEncodedSyntacticClassifications ( fileName : string , span : TextSpan ) : Classifications ;
987+ getEncodedSemanticClassifications ( fileName : string , span : TextSpan ) : Classifications ;
988988
989989 getCompletionsAtPosition ( fileName : string , position : number ) : CompletionInfo ;
990990 getCompletionEntryDetails ( fileName : string , position : number , entryName : string ) : CompletionEntryDetails ;
@@ -1330,7 +1330,7 @@ module ts {
13301330 * @deprecated Use getLexicalClassifications instead.
13311331 */
13321332 getClassificationsForLine ( text : string , lexState : EndOfLineState , syntacticClassifierAbsent : boolean ) : ClassificationResult ;
1333- getLexicalClassifications2 ( text : string , endOfLineState : EndOfLineState , syntacticClassifierAbsent : boolean ) : Classifications ;
1333+ getEncodedLexicalClassifications ( text : string , endOfLineState : EndOfLineState , syntacticClassifierAbsent : boolean ) : Classifications ;
13341334 }
13351335
13361336 /**
@@ -5844,10 +5844,10 @@ module ts {
58445844 }
58455845
58465846 function getSemanticClassifications ( fileName : string , span : TextSpan ) : ClassifiedSpan [ ] {
5847- return convertClassifications ( getSemanticClassifications2 ( fileName , span ) ) ;
5847+ return convertClassifications ( getEncodedSemanticClassifications ( fileName , span ) ) ;
58485848 }
58495849
5850- function getSemanticClassifications2 ( fileName : string , span : TextSpan ) : Classifications {
5850+ function getEncodedSemanticClassifications ( fileName : string , span : TextSpan ) : Classifications {
58515851 synchronizeHostData ( ) ;
58525852
58535853 let sourceFile = getValidSourceFile ( fileName ) ;
@@ -5960,10 +5960,10 @@ module ts {
59605960 }
59615961
59625962 function getSyntacticClassifications ( fileName : string , span : TextSpan ) : ClassifiedSpan [ ] {
5963- return convertClassifications ( getSyntacticClassifications2 ( fileName , span ) ) ;
5963+ return convertClassifications ( getEncodedSyntacticClassifications ( fileName , span ) ) ;
59645964 }
59655965
5966- function getSyntacticClassifications2 ( fileName : string , span : TextSpan ) : Classifications {
5966+ function getEncodedSyntacticClassifications ( fileName : string , span : TextSpan ) : Classifications {
59675967 // doesn't use compiler - no need to synchronize with host
59685968 let sourceFile = syntaxTreeCache . getCurrentSourceFile ( fileName ) ;
59695969
@@ -6486,8 +6486,8 @@ module ts {
64866486 getCompilerOptionsDiagnostics,
64876487 getSyntacticClassifications,
64886488 getSemanticClassifications,
6489- getSyntacticClassifications2 ,
6490- getSemanticClassifications2 ,
6489+ getEncodedSyntacticClassifications ,
6490+ getEncodedSemanticClassifications ,
64916491 getCompletionsAtPosition,
64926492 getCompletionEntryDetails,
64936493 getSignatureHelpItems,
@@ -6683,12 +6683,12 @@ module ts {
66836683 }
66846684
66856685 function getClassificationsForLine ( text : string , lexState : EndOfLineState , syntacticClassifierAbsent : boolean ) : ClassificationResult {
6686- return convertClassifications ( getLexicalClassifications2 ( text , lexState , syntacticClassifierAbsent ) , text ) ;
6686+ return convertClassifications ( getEncodedLexicalClassifications ( text , lexState , syntacticClassifierAbsent ) , text ) ;
66876687 }
66886688
66896689 // If there is a syntactic classifier ('syntacticClassifierAbsent' is false),
66906690 // we will be more conservative in order to avoid conflicting with the syntactic classifier.
6691- function getLexicalClassifications2 ( text : string , lexState : EndOfLineState , syntacticClassifierAbsent : boolean ) : Classifications {
6691+ function getEncodedLexicalClassifications ( text : string , lexState : EndOfLineState , syntacticClassifierAbsent : boolean ) : Classifications {
66926692 let offset = 0 ;
66936693 let token = SyntaxKind . Unknown ;
66946694 let lastNonTriviaToken = SyntaxKind . Unknown ;
@@ -7019,7 +7019,7 @@ module ts {
70197019
70207020 return {
70217021 getClassificationsForLine,
7022- getLexicalClassifications2
7022+ getEncodedLexicalClassifications
70237023 } ;
70247024 }
70257025
0 commit comments