@@ -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
/**
@@ -5844,10 +5844,10 @@ module ts {
5844
5844
}
5845
5845
5846
5846
function getSemanticClassifications ( fileName : string , span : TextSpan ) : ClassifiedSpan [ ] {
5847
- return convertClassifications ( getSemanticClassifications2 ( fileName , span ) ) ;
5847
+ return convertClassifications ( getEncodedSemanticClassifications ( fileName , span ) ) ;
5848
5848
}
5849
5849
5850
- function getSemanticClassifications2 ( fileName : string , span : TextSpan ) : Classifications {
5850
+ function getEncodedSemanticClassifications ( fileName : string , span : TextSpan ) : Classifications {
5851
5851
synchronizeHostData ( ) ;
5852
5852
5853
5853
let sourceFile = getValidSourceFile ( fileName ) ;
@@ -5960,10 +5960,10 @@ module ts {
5960
5960
}
5961
5961
5962
5962
function getSyntacticClassifications ( fileName : string , span : TextSpan ) : ClassifiedSpan [ ] {
5963
- return convertClassifications ( getSyntacticClassifications2 ( fileName , span ) ) ;
5963
+ return convertClassifications ( getEncodedSyntacticClassifications ( fileName , span ) ) ;
5964
5964
}
5965
5965
5966
- function getSyntacticClassifications2 ( fileName : string , span : TextSpan ) : Classifications {
5966
+ function getEncodedSyntacticClassifications ( fileName : string , span : TextSpan ) : Classifications {
5967
5967
// doesn't use compiler - no need to synchronize with host
5968
5968
let sourceFile = syntaxTreeCache . getCurrentSourceFile ( fileName ) ;
5969
5969
@@ -6486,8 +6486,8 @@ module ts {
6486
6486
getCompilerOptionsDiagnostics,
6487
6487
getSyntacticClassifications,
6488
6488
getSemanticClassifications,
6489
- getSyntacticClassifications2 ,
6490
- getSemanticClassifications2 ,
6489
+ getEncodedSyntacticClassifications ,
6490
+ getEncodedSemanticClassifications ,
6491
6491
getCompletionsAtPosition,
6492
6492
getCompletionEntryDetails,
6493
6493
getSignatureHelpItems,
@@ -6683,12 +6683,12 @@ module ts {
6683
6683
}
6684
6684
6685
6685
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 ) ;
6687
6687
}
6688
6688
6689
6689
// If there is a syntactic classifier ('syntacticClassifierAbsent' is false),
6690
6690
// 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 {
6692
6692
let offset = 0 ;
6693
6693
let token = SyntaxKind . Unknown ;
6694
6694
let lastNonTriviaToken = SyntaxKind . Unknown ;
@@ -7019,7 +7019,7 @@ module ts {
7019
7019
7020
7020
return {
7021
7021
getClassificationsForLine,
7022
- getLexicalClassifications2
7022
+ getEncodedLexicalClassifications
7023
7023
} ;
7024
7024
}
7025
7025
0 commit comments