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'; |
| 11 import 'package:analyzer/dart/ast/visitor.dart'; |
10 import 'package:analyzer/dart/element/element.dart'; | 12 import 'package:analyzer/dart/element/element.dart'; |
11 import 'package:analyzer/dart/element/type.dart'; | 13 import 'package:analyzer/dart/element/type.dart'; |
12 import 'package:analyzer/dart/element/visitor.dart'; | 14 import 'package:analyzer/dart/element/visitor.dart'; |
13 import 'package:analyzer/src/dart/element/element.dart'; | 15 import 'package:analyzer/src/dart/element/element.dart'; |
14 import 'package:analyzer/src/dart/element/member.dart'; | 16 import 'package:analyzer/src/dart/element/member.dart'; |
15 import 'package:analyzer/src/dart/element/type.dart'; | 17 import 'package:analyzer/src/dart/element/type.dart'; |
16 import 'package:analyzer/src/generated/ast.dart'; | |
17 import 'package:analyzer/src/generated/constant.dart'; | 18 import 'package:analyzer/src/generated/constant.dart'; |
18 import 'package:analyzer/src/generated/element_resolver.dart'; | 19 import 'package:analyzer/src/generated/element_resolver.dart'; |
19 import 'package:analyzer/src/generated/error.dart'; | 20 import 'package:analyzer/src/generated/error.dart'; |
20 import 'package:analyzer/src/generated/java_engine.dart'; | 21 import 'package:analyzer/src/generated/java_engine.dart'; |
21 import 'package:analyzer/src/generated/parser.dart' | 22 import 'package:analyzer/src/generated/parser.dart' |
22 show Parser, ParserErrorCode; | 23 show Parser, ParserErrorCode; |
23 import 'package:analyzer/src/generated/resolver.dart'; | 24 import 'package:analyzer/src/generated/resolver.dart'; |
24 import 'package:analyzer/src/generated/scanner.dart' as sc; | 25 import 'package:analyzer/src/generated/scanner.dart' as sc; |
25 import 'package:analyzer/src/generated/sdk.dart' show DartSdk, SdkLibrary; | 26 import 'package:analyzer/src/generated/sdk.dart' show DartSdk, SdkLibrary; |
26 import 'package:analyzer/src/generated/static_type_analyzer.dart'; | 27 import 'package:analyzer/src/generated/static_type_analyzer.dart'; |
(...skipping 6177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6204 toCheck.add(type.element); | 6205 toCheck.add(type.element); |
6205 // type arguments | 6206 // type arguments |
6206 if (type is InterfaceType) { | 6207 if (type is InterfaceType) { |
6207 InterfaceType interfaceType = type; | 6208 InterfaceType interfaceType = type; |
6208 for (DartType typeArgument in interfaceType.typeArguments) { | 6209 for (DartType typeArgument in interfaceType.typeArguments) { |
6209 _addTypeToCheck(typeArgument); | 6210 _addTypeToCheck(typeArgument); |
6210 } | 6211 } |
6211 } | 6212 } |
6212 } | 6213 } |
6213 } | 6214 } |
OLD | NEW |