File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -224,7 +224,7 @@ class ToStringVisitor extends RecursiveVisitor<void> {
224224 @override
225225 void visitProcedure (Procedure node) {
226226 if (
227- node.name.name == 'toString' &&
227+ node.name.text == 'toString' &&
228228 node.enclosingClass != null &&
229229 node.enclosingLibrary != null &&
230230 ! node.isStatic &&
Original file line number Diff line number Diff line change @@ -194,7 +194,7 @@ void main(List<String> args) async {
194194 final ReturnStatement replacement = verify (body.replaceWith (captureAny)).captured.single as ReturnStatement ;
195195 expect (replacement.expression, isA <SuperMethodInvocation >());
196196 final SuperMethodInvocation superMethodInvocation = replacement.expression as SuperMethodInvocation ;
197- expect (superMethodInvocation.name.name , 'toString' );
197+ expect (superMethodInvocation.name.text , 'toString' );
198198 }
199199
200200 test ('ToStringVisitor replaces toString in specified libraries (dart:ui)' , () {
You can’t perform that action at this time.
0 commit comments