| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |