Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(158)

Side by Side Diff: pkg/analyzer/lib/src/generated/error_verifier.dart

Issue 3007873002: Ensure mustCallSuper check visits children (flutter#11646). (Closed)
Patch Set: Moved comments. Created 3 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | pkg/analyzer/test/generated/hint_code_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library analyzer.src.generated.error_verifier; 5 library analyzer.src.generated.error_verifier;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 import "dart:math" as math; 8 import "dart:math" as math;
9 9
10 import 'package:analyzer/dart/ast/ast.dart'; 10 import 'package:analyzer/dart/ast/ast.dart';
(...skipping 7131 matching lines...) Expand 10 before | Expand all | Expand 10 after
7142 * Recursively visits an AST, looking for method invocations. 7142 * Recursively visits an AST, looking for method invocations.
7143 */ 7143 */
7144 class _InvocationCollector extends RecursiveAstVisitor { 7144 class _InvocationCollector extends RecursiveAstVisitor {
7145 final List<String> superCalls = <String>[]; 7145 final List<String> superCalls = <String>[];
7146 7146
7147 @override 7147 @override
7148 visitMethodInvocation(MethodInvocation node) { 7148 visitMethodInvocation(MethodInvocation node) {
7149 if (node.target is SuperExpression) { 7149 if (node.target is SuperExpression) {
7150 superCalls.add(node.methodName.name); 7150 superCalls.add(node.methodName.name);
7151 } 7151 }
7152 super.visitMethodInvocation(node);
7152 } 7153 }
7153 } 7154 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/test/generated/hint_code_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698