| 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 engine.resolver.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/src/generated/ast.dart'; |
| 11 import 'package:analyzer/src/generated/constant.dart'; |
| 12 import 'package:analyzer/src/generated/element.dart'; |
| 13 import 'package:analyzer/src/generated/element_resolver.dart'; |
| 14 import 'package:analyzer/src/generated/error.dart'; |
| 15 import 'package:analyzer/src/generated/java_engine.dart'; |
| 16 import 'package:analyzer/src/generated/parser.dart' |
| 17 show Parser, ParserErrorCode; |
| 18 import 'package:analyzer/src/generated/resolver.dart'; |
| 19 import 'package:analyzer/src/generated/scanner.dart' as sc; |
| 20 import 'package:analyzer/src/generated/sdk.dart' show DartSdk, SdkLibrary; |
| 10 import 'package:analyzer/src/generated/static_type_analyzer.dart'; | 21 import 'package:analyzer/src/generated/static_type_analyzer.dart'; |
| 11 | 22 import 'package:analyzer/src/generated/utilities_dart.dart'; |
| 12 import 'ast.dart'; | |
| 13 import 'constant.dart'; | |
| 14 import 'element.dart'; | |
| 15 import 'element_resolver.dart'; | |
| 16 import 'error.dart'; | |
| 17 import 'java_engine.dart'; | |
| 18 import 'parser.dart' show Parser, ParserErrorCode; | |
| 19 import 'resolver.dart'; | |
| 20 import 'scanner.dart' as sc; | |
| 21 import 'sdk.dart' show DartSdk, SdkLibrary; | |
| 22 import 'utilities_dart.dart'; | |
| 23 | 23 |
| 24 /** | 24 /** |
| 25 * A visitor used to traverse an AST structure looking for additional errors and | 25 * A visitor used to traverse an AST structure looking for additional errors and |
| 26 * warnings not covered by the parser and resolver. | 26 * warnings not covered by the parser and resolver. |
| 27 */ | 27 */ |
| 28 class ErrorVerifier extends RecursiveAstVisitor<Object> { | 28 class ErrorVerifier extends RecursiveAstVisitor<Object> { |
| 29 /** | 29 /** |
| 30 * Static final string with value `"getter "` used in the construction of the | 30 * Static final string with value `"getter "` used in the construction of the |
| 31 * [StaticWarningCode.NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_ONE], and | 31 * [StaticWarningCode.NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_ONE], and |
| 32 * similar, error code messages. | 32 * similar, error code messages. |
| (...skipping 6142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6175 toCheck.add(type.element); | 6175 toCheck.add(type.element); |
| 6176 // type arguments | 6176 // type arguments |
| 6177 if (type is InterfaceType) { | 6177 if (type is InterfaceType) { |
| 6178 InterfaceType interfaceType = type; | 6178 InterfaceType interfaceType = type; |
| 6179 for (DartType typeArgument in interfaceType.typeArguments) { | 6179 for (DartType typeArgument in interfaceType.typeArguments) { |
| 6180 _addTypeToCheck(typeArgument); | 6180 _addTypeToCheck(typeArgument); |
| 6181 } | 6181 } |
| 6182 } | 6182 } |
| 6183 } | 6183 } |
| 6184 } | 6184 } |
| OLD | NEW |