-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DAS: Simplify fields in AnalysisServer
Many fields in this class are initialized in the class body, which is unfortunate but seems necessary. However, such fields can often be marked final, which makes the life cycle of such fields more clear: contextManager, analysisDriverScheduler, pubPackageService. Also, searchEngine can be a late final field wtih an initializer. The analysisPerformanceLogger field is unused outside of the constructor body in which it is declared; can be deleted. isFirstAnalysisSinceContextsBuilt can be made private. `_getByteStorePath` is also moved out to be an extension getter; it was an instance method, but only uses the one OverlayResourceProvider. Logically the function is just extracting a value from an OverlayResourceProvider. Change-Id: Ib08693ef16221560a1f14279725d9d44f9f5f99c Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/403920 Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Commit-Queue: Samuel Rawlins <srawlins@google.com>
- Loading branch information
Showing
1 changed file
with
36 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters