Skip to content

Commit 956897f

Browse files
Fix deprecated name broken in new analyzer
1 parent c2c38fa commit 956897f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/analyzer_plugin/lib/src/assist/toggle_stateful.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class ToggleComponentStatefulness extends AssistContributorBase with ComponentDe
4747
await super.computeAssists(request, collector);
4848
if (!setupCompute() || !initializeAssistApi(request.result.content)) return;
4949

50-
newComponentBaseClass = _getNewBase(componentSupertypeNode.name.name);
50+
newComponentBaseClass = _getNewBase(componentSupertypeNode.nameLexeme);
5151

5252
// If there is no known corresponding base class, short circuit.
5353
if (newComponentBaseClass == null) return;

0 commit comments

Comments
 (0)