File tree Expand file tree Collapse file tree 2 files changed +1
-15
lines changed Expand file tree Collapse file tree 2 files changed +1
-15
lines changed Original file line number Diff line number Diff line change @@ -5093,14 +5093,7 @@ namespace ts {
5093
5093
// Otherwise, returns all the diagnostics (global and file associated) in this collection.
5094
5094
getDiagnostics ( fileName ?: string ) : Diagnostic [ ] ;
5095
5095
5096
- // Gets a count of how many times this collection has been modified. This value changes
5097
- // each time 'add' is called (regardless of whether or not an equivalent diagnostic was
5098
- // already in the collection). As such, it can be used as a simple way to tell if any
5099
- // operation caused diagnostics to be returned by storing and comparing the return value
5100
- // of this method before/after the operation is performed.
5101
- getModificationCount ( ) : number ;
5102
-
5103
- /* @internal */ reattachFileDiagnostics ( newFile : SourceFile ) : void ;
5096
+ reattachFileDiagnostics ( newFile : SourceFile ) : void ;
5104
5097
}
5105
5098
5106
5099
// SyntaxKind.SyntaxList
Original file line number Diff line number Diff line change @@ -2557,20 +2557,14 @@ namespace ts {
2557
2557
const filesWithDiagnostics = [ ] as SortedArray < string > ;
2558
2558
const fileDiagnostics = createMap < SortedArray < Diagnostic > > ( ) ;
2559
2559
let hasReadNonFileDiagnostics = false ;
2560
- let modificationCount = 0 ;
2561
2560
2562
2561
return {
2563
2562
add,
2564
2563
getGlobalDiagnostics,
2565
2564
getDiagnostics,
2566
- getModificationCount,
2567
2565
reattachFileDiagnostics
2568
2566
} ;
2569
2567
2570
- function getModificationCount ( ) {
2571
- return modificationCount ;
2572
- }
2573
-
2574
2568
function reattachFileDiagnostics ( newFile : SourceFile ) : void {
2575
2569
forEach ( fileDiagnostics . get ( newFile . fileName ) , diagnostic => diagnostic . file = newFile ) ;
2576
2570
}
@@ -2596,7 +2590,6 @@ namespace ts {
2596
2590
}
2597
2591
2598
2592
insertSorted ( diagnostics , diagnostic , compareDiagnostics ) ;
2599
- modificationCount ++ ;
2600
2593
}
2601
2594
2602
2595
function getGlobalDiagnostics ( ) : Diagnostic [ ] {
You can’t perform that action at this time.
0 commit comments