Skip to content

Commit

Permalink
Elements. Migrate AnalyzerConverter.
Browse files Browse the repository at this point in the history
Change-Id: Ia3da05853e97e64899358bdc787c0226ba036bc6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/403904
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
  • Loading branch information
scheglov authored and Commit Queue committed Jan 9, 2025
1 parent 5f24674 commit 4be4ec7
Show file tree
Hide file tree
Showing 5 changed files with 84 additions and 320 deletions.
1 change: 1 addition & 0 deletions pkg/analyzer_plugin/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## 0.13.0-dev
- Remove `elementName()` from `RangeFactory`. Use `fragmentName()` instead.
- Breaking changes to `DartFileEditBuilder` and `DartEditBuilder`.
- Breaking changes to `AnalyzerConverter`.

## 0.12.0
- Breaking changes to `DartFileEditBuilder`: `convertFunctionFromSyncToAsync`
Expand Down
2 changes: 0 additions & 2 deletions pkg/analyzer_plugin/analyzer_use_new_elements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
lib/src/utilities/completion/optype.dart
lib/src/utilities/navigation/navigation_dart.dart
lib/utilities/analyzer_converter.dart
test/utilities/analyzer_converter_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class SuggestionBuilderImpl implements SuggestionBuilder {
suggestion.docComplete = doc;
suggestion.docSummary = getDartDocSummary(doc);

suggestion.element = converter.convertElement2(element);
suggestion.element = converter.convertElement(element);
var enclosingElement = element.enclosingElement2;
if (enclosingElement is ClassElement2) {
suggestion.declaringType = enclosingElement.displayName;
Expand Down
Loading

0 comments on commit 4be4ec7

Please sign in to comment.