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'; |
11 import 'package:analyzer/dart/ast/token.dart'; | 11 import 'package:analyzer/dart/ast/token.dart'; |
12 import 'package:analyzer/dart/ast/visitor.dart'; | 12 import 'package:analyzer/dart/ast/visitor.dart'; |
13 import 'package:analyzer/dart/element/element.dart'; | 13 import 'package:analyzer/dart/element/element.dart'; |
14 import 'package:analyzer/dart/element/type.dart'; | 14 import 'package:analyzer/dart/element/type.dart'; |
15 import 'package:analyzer/dart/element/visitor.dart'; | 15 import 'package:analyzer/dart/element/visitor.dart'; |
| 16 import 'package:analyzer/error/error.dart'; |
| 17 import 'package:analyzer/error/listener.dart'; |
16 import 'package:analyzer/src/dart/element/element.dart'; | 18 import 'package:analyzer/src/dart/element/element.dart'; |
17 import 'package:analyzer/src/dart/element/member.dart'; | 19 import 'package:analyzer/src/dart/element/member.dart'; |
18 import 'package:analyzer/src/dart/element/type.dart'; | 20 import 'package:analyzer/src/dart/element/type.dart'; |
19 import 'package:analyzer/src/dart/resolver/inheritance_manager.dart'; | 21 import 'package:analyzer/src/dart/resolver/inheritance_manager.dart'; |
| 22 import 'package:analyzer/src/error/codes.dart'; |
20 import 'package:analyzer/src/error/pending_error.dart'; | 23 import 'package:analyzer/src/error/pending_error.dart'; |
21 import 'package:analyzer/src/generated/constant.dart'; | 24 import 'package:analyzer/src/generated/constant.dart'; |
22 import 'package:analyzer/src/generated/element_resolver.dart'; | 25 import 'package:analyzer/src/generated/element_resolver.dart'; |
23 import 'package:analyzer/src/generated/engine.dart'; | 26 import 'package:analyzer/src/generated/engine.dart'; |
24 import 'package:analyzer/src/generated/error.dart'; | |
25 import 'package:analyzer/src/generated/java_engine.dart'; | 27 import 'package:analyzer/src/generated/java_engine.dart'; |
26 import 'package:analyzer/src/generated/parser.dart' show ParserErrorCode; | 28 import 'package:analyzer/src/generated/parser.dart' show ParserErrorCode; |
27 import 'package:analyzer/src/generated/resolver.dart'; | 29 import 'package:analyzer/src/generated/resolver.dart'; |
28 import 'package:analyzer/src/generated/sdk.dart' show DartSdk, SdkLibrary; | 30 import 'package:analyzer/src/generated/sdk.dart' show DartSdk, SdkLibrary; |
29 import 'package:analyzer/src/generated/source.dart'; | 31 import 'package:analyzer/src/generated/source.dart'; |
30 import 'package:analyzer/src/generated/utilities_dart.dart'; | 32 import 'package:analyzer/src/generated/utilities_dart.dart'; |
31 import 'package:analyzer/src/task/dart.dart'; | 33 import 'package:analyzer/src/task/dart.dart'; |
32 import 'package:analyzer/src/task/strong/checker.dart' as checker | 34 import 'package:analyzer/src/task/strong/checker.dart' as checker |
33 show isKnownFunction; | 35 show isKnownFunction; |
34 | 36 |
(...skipping 6858 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6893 class _InvocationCollector extends RecursiveAstVisitor { | 6895 class _InvocationCollector extends RecursiveAstVisitor { |
6894 final List<String> superCalls = <String>[]; | 6896 final List<String> superCalls = <String>[]; |
6895 | 6897 |
6896 @override | 6898 @override |
6897 visitMethodInvocation(MethodInvocation node) { | 6899 visitMethodInvocation(MethodInvocation node) { |
6898 if (node.target is SuperExpression) { | 6900 if (node.target is SuperExpression) { |
6899 superCalls.add(node.methodName.name); | 6901 superCalls.add(node.methodName.name); |
6900 } | 6902 } |
6901 } | 6903 } |
6902 } | 6904 } |
OLD | NEW |