@@ -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 /**
@@ -5847,10 +5847,10 @@ module ts {
58475847 }
58485848
58495849 function getSemanticClassifications ( fileName : string , span : TextSpan ) : ClassifiedSpan [ ] {
5850- return convertClassifications ( getSemanticClassifications2 ( fileName , span ) ) ;
5850+ return convertClassifications ( getEncodedSemanticClassifications ( fileName , span ) ) ;
58515851 }
58525852
5853- function getSemanticClassifications2 ( fileName : string , span : TextSpan ) : Classifications {
5853+ function getEncodedSemanticClassifications ( fileName : string , span : TextSpan ) : Classifications {
58545854 synchronizeHostData ( ) ;
58555855
58565856 let sourceFile = getValidSourceFile ( fileName ) ;
@@ -5963,10 +5963,10 @@ module ts {
59635963 }
59645964
59655965 function getSyntacticClassifications ( fileName : string , span : TextSpan ) : ClassifiedSpan [ ] {
5966- return convertClassifications ( getSyntacticClassifications2 ( fileName , span ) ) ;
5966+ return convertClassifications ( getEncodedSyntacticClassifications ( fileName , span ) ) ;
59675967 }
59685968
5969- function getSyntacticClassifications2 ( fileName : string , span : TextSpan ) : Classifications {
5969+ function getEncodedSyntacticClassifications ( fileName : string , span : TextSpan ) : Classifications {
59705970 // doesn't use compiler - no need to synchronize with host
59715971 let sourceFile = syntaxTreeCache . getCurrentSourceFile ( fileName ) ;
59725972
@@ -6489,8 +6489,8 @@ module ts {
64896489 getCompilerOptionsDiagnostics,
64906490 getSyntacticClassifications,
64916491 getSemanticClassifications,
6492- getSyntacticClassifications2 ,
6493- getSemanticClassifications2 ,
6492+ getEncodedSyntacticClassifications ,
6493+ getEncodedSemanticClassifications ,
64946494 getCompletionsAtPosition,
64956495 getCompletionEntryDetails,
64966496 getSignatureHelpItems,
@@ -6686,12 +6686,12 @@ module ts {
66866686 }
66876687
66886688 function getClassificationsForLine ( text : string , lexState : EndOfLineState , syntacticClassifierAbsent : boolean ) : ClassificationResult {
6689- return convertClassifications ( getLexicalClassifications2 ( text , lexState , syntacticClassifierAbsent ) , text ) ;
6689+ return convertClassifications ( getEncodedLexicalClassifications ( text , lexState , syntacticClassifierAbsent ) , text ) ;
66906690 }
66916691
66926692 // If there is a syntactic classifier ('syntacticClassifierAbsent' is false),
66936693 // we will be more conservative in order to avoid conflicting with the syntactic classifier.
6694- function getLexicalClassifications2 ( text : string , lexState : EndOfLineState , syntacticClassifierAbsent : boolean ) : Classifications {
6694+ function getEncodedLexicalClassifications ( text : string , lexState : EndOfLineState , syntacticClassifierAbsent : boolean ) : Classifications {
66956695 let offset = 0 ;
66966696 let token = SyntaxKind . Unknown ;
66976697 let lastNonTriviaToken = SyntaxKind . Unknown ;
@@ -7022,7 +7022,7 @@ module ts {
70227022
70237023 return {
70247024 getClassificationsForLine,
7025- getLexicalClassifications2
7025+ getEncodedLexicalClassifications
70267026 } ;
70277027 }
70287028
0 commit comments