7d5f0a6508
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>