@@ -34,6 +34,7 @@ import 'package:analyzer_plugin/protocol/protocol_common.dart' show Location;
3434import 'package:over_react_analyzer_plugin/src/diagnostic/analyzer_debug_helper.dart' ;
3535import 'package:over_react_analyzer_plugin/src/diagnostic_contributor.dart' ;
3636import 'package:over_react_analyzer_plugin/src/indent_util.dart' ;
37+ import 'package:over_react_analyzer_plugin/src/over_react_builder_parsing.dart' show TypeNameHelper;
3738import 'package:over_react_analyzer_plugin/src/util/ast_util.dart' ;
3839import 'package:over_react_analyzer_plugin/src/util/function_components.dart' ;
3940import 'package:over_react_analyzer_plugin/src/util/pretty_print.dart' ;
@@ -680,7 +681,7 @@ class ExhaustiveDeps extends DiagnosticContributor {
680681 // NamedType case. This is for references to generic type parameters
681682 // (references to other types will get filtered out by the isDeclaredInPureScope check above).
682683 (reference) {
683- dependency = reference.name.name ;
684+ dependency = reference.nameLexeme ;
684685 // These aren't possible for type annotations.
685686 isStable = false ;
686687 isUsedAsCascadeTarget = false ;
@@ -1980,7 +1981,7 @@ _Recommendations collectRecommendations({
19801981String ? getConstructionExpressionType (Expression node) {
19811982 if (node is InstanceCreationExpression ) {
19821983 if (node.isConst) return null ;
1983- return node.constructorName.type.name.name ;
1984+ return node.constructorName.type.nameLexeme ;
19841985 } else if (node is ListLiteral ) {
19851986 return _DepType .list;
19861987 } else if (node is SetOrMapLiteral ) {
0 commit comments