OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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.task.strong_mode; | 5 library analyzer.src.task.strong_mode; |
6 | 6 |
7 import 'dart:collection'; | 7 import 'dart:collection'; |
8 | 8 |
9 import 'package:analyzer/src/generated/ast.dart'; | 9 import 'package:analyzer/src/generated/ast.dart'; |
10 import 'package:analyzer/src/generated/element.dart'; | 10 import 'package:analyzer/src/generated/element.dart'; |
11 import 'package:analyzer/src/generated/resolver.dart'; | 11 import 'package:analyzer/src/generated/resolver.dart' |
| 12 show TypeProvider, InheritanceManager; |
| 13 import 'package:analyzer/src/generated/type_system.dart'; |
12 import 'package:analyzer/src/generated/utilities_dart.dart'; | 14 import 'package:analyzer/src/generated/utilities_dart.dart'; |
13 | 15 |
14 /** | 16 /** |
15 * Set the type of the sole parameter of the given [element] to the given [type]
. | 17 * Set the type of the sole parameter of the given [element] to the given [type]
. |
16 */ | 18 */ |
17 void setParameterType(PropertyAccessorElement element, DartType type) { | 19 void setParameterType(PropertyAccessorElement element, DartType type) { |
18 if (element is PropertyAccessorElementImpl) { | 20 if (element is PropertyAccessorElementImpl) { |
19 ParameterElement parameter = _getParameter(element); | 21 ParameterElement parameter = _getParameter(element); |
20 if (parameter is ParameterElementImpl) { | 22 if (parameter is ParameterElementImpl) { |
21 // | 23 // |
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
497 results.add(element); | 499 results.add(element); |
498 } | 500 } |
499 } | 501 } |
500 } | 502 } |
501 } | 503 } |
502 | 504 |
503 /** | 505 /** |
504 * A class of exception that is not used anywhere else. | 506 * A class of exception that is not used anywhere else. |
505 */ | 507 */ |
506 class _CycleException implements Exception {} | 508 class _CycleException implements Exception {} |
OLD | NEW |