@@ -973,18 +973,18 @@ module ts {
973
973
getCompilerOptionsDiagnostics ( ) : Diagnostic [ ] ;
974
974
975
975
/**
976
- * @deprecated Use getSyntacticClassifications2 instead.
976
+ * @deprecated Use getEncodedSyntacticClassifications instead.
977
977
*/
978
978
getSyntacticClassifications ( fileName : string , span : TextSpan ) : ClassifiedSpan [ ] ;
979
979
980
980
/**
981
- * @deprecated Use getSemanticClassifications2 instead.
981
+ * @deprecated Use getEncodedSemanticClassifications instead.
982
982
*/
983
983
getSemanticClassifications ( fileName : string , span : TextSpan ) : ClassifiedSpan [ ] ;
984
984
985
985
// 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 ;
988
988
989
989
getCompletionsAtPosition ( fileName : string , position : number ) : CompletionInfo ;
990
990
getCompletionEntryDetails ( fileName : string , position : number , entryName : string ) : CompletionEntryDetails ;
@@ -1330,7 +1330,7 @@ module ts {
1330
1330
* @deprecated Use getLexicalClassifications instead.
1331
1331
*/
1332
1332
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 ;
1334
1334
}
1335
1335
1336
1336
/**
@@ -5847,10 +5847,10 @@ module ts {
5847
5847
}
5848
5848
5849
5849
function getSemanticClassifications ( fileName : string , span : TextSpan ) : ClassifiedSpan [ ] {
5850
- return convertClassifications ( getSemanticClassifications2 ( fileName , span ) ) ;
5850
+ return convertClassifications ( getEncodedSemanticClassifications ( fileName , span ) ) ;
5851
5851
}
5852
5852
5853
- function getSemanticClassifications2 ( fileName : string , span : TextSpan ) : Classifications {
5853
+ function getEncodedSemanticClassifications ( fileName : string , span : TextSpan ) : Classifications {
5854
5854
synchronizeHostData ( ) ;
5855
5855
5856
5856
let sourceFile = getValidSourceFile ( fileName ) ;
@@ -5963,10 +5963,10 @@ module ts {
5963
5963
}
5964
5964
5965
5965
function getSyntacticClassifications ( fileName : string , span : TextSpan ) : ClassifiedSpan [ ] {
5966
- return convertClassifications ( getSyntacticClassifications2 ( fileName , span ) ) ;
5966
+ return convertClassifications ( getEncodedSyntacticClassifications ( fileName , span ) ) ;
5967
5967
}
5968
5968
5969
- function getSyntacticClassifications2 ( fileName : string , span : TextSpan ) : Classifications {
5969
+ function getEncodedSyntacticClassifications ( fileName : string , span : TextSpan ) : Classifications {
5970
5970
// doesn't use compiler - no need to synchronize with host
5971
5971
let sourceFile = syntaxTreeCache . getCurrentSourceFile ( fileName ) ;
5972
5972
@@ -6489,8 +6489,8 @@ module ts {
6489
6489
getCompilerOptionsDiagnostics,
6490
6490
getSyntacticClassifications,
6491
6491
getSemanticClassifications,
6492
- getSyntacticClassifications2 ,
6493
- getSemanticClassifications2 ,
6492
+ getEncodedSyntacticClassifications ,
6493
+ getEncodedSemanticClassifications ,
6494
6494
getCompletionsAtPosition,
6495
6495
getCompletionEntryDetails,
6496
6496
getSignatureHelpItems,
@@ -6686,12 +6686,12 @@ module ts {
6686
6686
}
6687
6687
6688
6688
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 ) ;
6690
6690
}
6691
6691
6692
6692
// If there is a syntactic classifier ('syntacticClassifierAbsent' is false),
6693
6693
// 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 {
6695
6695
let offset = 0 ;
6696
6696
let token = SyntaxKind . Unknown ;
6697
6697
let lastNonTriviaToken = SyntaxKind . Unknown ;
@@ -7022,7 +7022,7 @@ module ts {
7022
7022
7023
7023
return {
7024
7024
getClassificationsForLine,
7025
- getLexicalClassifications2
7025
+ getEncodedLexicalClassifications
7026
7026
} ;
7027
7027
}
7028
7028
0 commit comments