@@ -405,7 +405,10 @@ declare namespace ts {
405405 interface ModifiersArray extends NodeArray < Modifier > {
406406 flags : NodeFlags ;
407407 }
408- interface Modifier extends Node {
408+ interface Token extends Node {
409+ __tokenTag : any ;
410+ }
411+ interface Modifier extends Token {
409412 }
410413 interface Identifier extends PrimaryExpression {
411414 text : string ;
@@ -2050,7 +2053,6 @@ declare namespace ts {
20502053 getCancellationToken ?( ) : CancellationToken ;
20512054 getDefaultLibFileName ( options : CompilerOptions ) : string ;
20522055 getDefaultLibLocation ?( ) : string ;
2053- getDefaultTypeDirectiveNames ?( rootPath : string ) : string [ ] ;
20542056 writeFile : WriteFileCallback ;
20552057 getCurrentDirectory ( ) : string ;
20562058 getDirectories ( path : string ) : string [ ] ;
@@ -2156,6 +2158,8 @@ declare namespace ts {
21562158 function ensureTrailingDirectorySeparator ( path : string ) : string ;
21572159 function comparePaths ( a : string , b : string , currentDirectory : string , ignoreCase ?: boolean ) : Comparison ;
21582160 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 ;
21592163 function fileExtensionIs ( path : string , extension : string ) : boolean ;
21602164 function fileExtensionIsAny ( path : string , extensions : string [ ] ) : boolean ;
21612165 function getRegularExpressionForWildcard ( specs : string [ ] , basePath : string , usage : "files" | "directories" | "exclude" ) : string ;
@@ -2193,6 +2197,8 @@ declare namespace ts {
21932197 function changeExtension < T extends string | Path > ( path : T , newExtension : string ) : T ;
21942198 interface ObjectAllocator {
21952199 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 ;
21962202 getSourceFileConstructor ( ) : new ( kind : SyntaxKind , pos ?: number , end ?: number ) => SourceFile ;
21972203 getSymbolConstructor ( ) : new ( flags : SymbolFlags , name : string ) => Symbol ;
21982204 getTypeConstructor ( ) : new ( checker : TypeChecker , flags : TypeFlags ) => Type ;
@@ -6456,13 +6462,13 @@ declare namespace ts {
64566462 key : string ;
64576463 message : string ;
64586464 } ;
6459- Report_Errors_on_Unused_Locals : {
6465+ Report_errors_on_unused_locals : {
64606466 code : number ;
64616467 category : DiagnosticCategory ;
64626468 key : string ;
64636469 message : string ;
64646470 } ;
6465- Report_Errors_on_Unused_Parameters : {
6471+ Report_errors_on_unused_parameters : {
64666472 code : number ;
64676473 category : DiagnosticCategory ;
64686474 key : string ;
@@ -7143,8 +7149,6 @@ declare namespace ts {
71437149 function collapseTextChangeRangesAcrossMultipleVersions ( changes : TextChangeRange [ ] ) : TextChangeRange ;
71447150 function getTypeParameterOwner ( d : Declaration ) : Declaration ;
71457151 function isParameterPropertyDeclaration ( node : ParameterDeclaration ) : boolean ;
7146- function startsWith ( str : string , prefix : string ) : boolean ;
7147- function endsWith ( str : string , suffix : string ) : boolean ;
71487152}
71497153declare namespace ts {
71507154 let parseTime : number ;
@@ -7225,6 +7229,12 @@ declare namespace ts {
72257229 const defaultInitCompilerOptions : CompilerOptions ;
72267230 function createCompilerHost ( options : CompilerOptions , setParentNodes ?: boolean ) : CompilerHost ;
72277231 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 ;
72287238 function flattenDiagnosticMessageText ( messageText : string | DiagnosticMessageChain , newLine : string ) : string ;
72297239 function getAutomaticTypeDirectiveNames ( options : CompilerOptions , rootFiles : string [ ] , host : CompilerHost ) : string [ ] ;
72307240 function createProgram ( rootNames : string [ ] , options : CompilerOptions , host ?: CompilerHost , oldProgram ?: Program ) : Program ;
@@ -8388,7 +8398,6 @@ declare namespace ts.server {
83888398 class ScriptInfo {
83898399 private host ;
83908400 fileName : string ;
8391- content : string ;
83928401 isOpen : boolean ;
83938402 svc : ScriptVersionCache ;
83948403 children : ScriptInfo [ ] ;
@@ -8729,7 +8738,7 @@ declare namespace ts {
87298738 getLocalizedDiagnosticMessages ( ) : string ;
87308739 getCancellationToken ( ) : HostCancellationToken ;
87318740 getCurrentDirectory ( ) : string ;
8732- getDirectories ( path : string ) : string [ ] ;
8741+ getDirectories ( path : string ) : string ;
87338742 getDefaultLibFileName ( options : string ) : string ;
87348743 getNewLine ?( ) : string ;
87358744 getProjectVersion ?( ) : string ;
0 commit comments