@@ -405,7 +405,10 @@ declare namespace ts {
405
405
interface ModifiersArray extends NodeArray < Modifier > {
406
406
flags : NodeFlags ;
407
407
}
408
- interface Modifier extends Node {
408
+ interface Token extends Node {
409
+ __tokenTag : any ;
410
+ }
411
+ interface Modifier extends Token {
409
412
}
410
413
interface Identifier extends PrimaryExpression {
411
414
text : string ;
@@ -2050,7 +2053,6 @@ declare namespace ts {
2050
2053
getCancellationToken ?( ) : CancellationToken ;
2051
2054
getDefaultLibFileName ( options : CompilerOptions ) : string ;
2052
2055
getDefaultLibLocation ?( ) : string ;
2053
- getDefaultTypeDirectiveNames ?( rootPath : string ) : string [ ] ;
2054
2056
writeFile : WriteFileCallback ;
2055
2057
getCurrentDirectory ( ) : string ;
2056
2058
getDirectories ( path : string ) : string [ ] ;
@@ -2156,6 +2158,8 @@ declare namespace ts {
2156
2158
function ensureTrailingDirectorySeparator ( path : string ) : string ;
2157
2159
function comparePaths ( a : string , b : string , currentDirectory : string , ignoreCase ?: boolean ) : Comparison ;
2158
2160
function containsPath ( parent : string , child : string , currentDirectory : string , ignoreCase ?: boolean ) : boolean ;
2161
+ function startsWith ( str : string , prefix : string ) : boolean ;
2162
+ function endsWith ( str : string , suffix : string ) : boolean ;
2159
2163
function fileExtensionIs ( path : string , extension : string ) : boolean ;
2160
2164
function fileExtensionIsAny ( path : string , extensions : string [ ] ) : boolean ;
2161
2165
function getRegularExpressionForWildcard ( specs : string [ ] , basePath : string , usage : "files" | "directories" | "exclude" ) : string ;
@@ -2193,6 +2197,8 @@ declare namespace ts {
2193
2197
function changeExtension < T extends string | Path > ( path : T , newExtension : string ) : T ;
2194
2198
interface ObjectAllocator {
2195
2199
getNodeConstructor ( ) : new ( kind : SyntaxKind , pos ?: number , end ?: number ) => Node ;
2200
+ getTokenConstructor ( ) : new ( kind : SyntaxKind , pos ?: number , end ?: number ) => Token ;
2201
+ getIdentifierConstructor ( ) : new ( kind : SyntaxKind , pos ?: number , end ?: number ) => Token ;
2196
2202
getSourceFileConstructor ( ) : new ( kind : SyntaxKind , pos ?: number , end ?: number ) => SourceFile ;
2197
2203
getSymbolConstructor ( ) : new ( flags : SymbolFlags , name : string ) => Symbol ;
2198
2204
getTypeConstructor ( ) : new ( checker : TypeChecker , flags : TypeFlags ) => Type ;
@@ -6456,13 +6462,13 @@ declare namespace ts {
6456
6462
key : string ;
6457
6463
message : string ;
6458
6464
} ;
6459
- Report_Errors_on_Unused_Locals : {
6465
+ Report_errors_on_unused_locals : {
6460
6466
code : number ;
6461
6467
category : DiagnosticCategory ;
6462
6468
key : string ;
6463
6469
message : string ;
6464
6470
} ;
6465
- Report_Errors_on_Unused_Parameters : {
6471
+ Report_errors_on_unused_parameters : {
6466
6472
code : number ;
6467
6473
category : DiagnosticCategory ;
6468
6474
key : string ;
@@ -7143,8 +7149,6 @@ declare namespace ts {
7143
7149
function collapseTextChangeRangesAcrossMultipleVersions ( changes : TextChangeRange [ ] ) : TextChangeRange ;
7144
7150
function getTypeParameterOwner ( d : Declaration ) : Declaration ;
7145
7151
function isParameterPropertyDeclaration ( node : ParameterDeclaration ) : boolean ;
7146
- function startsWith ( str : string , prefix : string ) : boolean ;
7147
- function endsWith ( str : string , suffix : string ) : boolean ;
7148
7152
}
7149
7153
declare namespace ts {
7150
7154
let parseTime : number ;
@@ -7225,6 +7229,12 @@ declare namespace ts {
7225
7229
const defaultInitCompilerOptions : CompilerOptions ;
7226
7230
function createCompilerHost ( options : CompilerOptions , setParentNodes ?: boolean ) : CompilerHost ;
7227
7231
function getPreEmitDiagnostics ( program : Program , sourceFile ?: SourceFile , cancellationToken ?: CancellationToken ) : Diagnostic [ ] ;
7232
+ interface FormatDiagnosticsHost {
7233
+ getCurrentDirectory ( ) : string ;
7234
+ getCanonicalFileName ( fileName : string ) : string ;
7235
+ getNewLine ( ) : string ;
7236
+ }
7237
+ function formatDiagnostics ( diagnostics : Diagnostic [ ] , host : FormatDiagnosticsHost ) : string ;
7228
7238
function flattenDiagnosticMessageText ( messageText : string | DiagnosticMessageChain , newLine : string ) : string ;
7229
7239
function getAutomaticTypeDirectiveNames ( options : CompilerOptions , rootFiles : string [ ] , host : CompilerHost ) : string [ ] ;
7230
7240
function createProgram ( rootNames : string [ ] , options : CompilerOptions , host ?: CompilerHost , oldProgram ?: Program ) : Program ;
@@ -8388,7 +8398,6 @@ declare namespace ts.server {
8388
8398
class ScriptInfo {
8389
8399
private host ;
8390
8400
fileName : string ;
8391
- content : string ;
8392
8401
isOpen : boolean ;
8393
8402
svc : ScriptVersionCache ;
8394
8403
children : ScriptInfo [ ] ;
@@ -8729,7 +8738,7 @@ declare namespace ts {
8729
8738
getLocalizedDiagnosticMessages ( ) : string ;
8730
8739
getCancellationToken ( ) : HostCancellationToken ;
8731
8740
getCurrentDirectory ( ) : string ;
8732
- getDirectories ( path : string ) : string [ ] ;
8741
+ getDirectories ( path : string ) : string ;
8733
8742
getDefaultLibFileName ( options : string ) : string ;
8734
8743
getNewLine ?( ) : string ;
8735
8744
getProjectVersion ?( ) : string ;
0 commit comments