Skip to content

Commit

Permalink
Use AnalysisContextCollection for DartServerPlugin.
Browse files Browse the repository at this point in the history
Not for landing, has debug logging.

There is also an example (also not for landing) of a concrete plugin.

Change-Id: Id79336205b7b6d4cd462e7cfa0fdc7bea41c2987
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/243161
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
  • Loading branch information
scheglov authored and Commit Bot committed Jun 21, 2022
1 parent 6959026 commit 46b73c6
Show file tree
Hide file tree
Showing 15 changed files with 383 additions and 304 deletions.
1 change: 0 additions & 1 deletion pkg/analyzer/lib/src/dart/analysis/driver.dart
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,6 @@ class AnalysisDriver implements AnalysisDriverGeneric {
/// library that was resynthesized, but after some initial analysis we might
/// not get again to many of these libraries. So, we should clear the context
/// periodically.
@visibleForTesting
void clearLibraryContext() {
_libraryContext?.dispose();
_libraryContext = null;
Expand Down
3 changes: 3 additions & 0 deletions pkg/analyzer_plugin/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 0.11.0
- Using `AnalysisContextCollection` and `AnalysisContext` for analysis.

## 0.10.0
- Support version `4.x` of the `analyzer` package

Expand Down
Loading

0 comments on commit 46b73c6

Please sign in to comment.