| 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 dart2js.resolution.class_hierarchy; | 5 library dart2js.resolution.class_hierarchy; |
| 6 | 6 |
| 7 import '../common.dart'; | 7 import '../common.dart'; |
| 8 import '../common/resolution.dart' show Feature, Resolution; | 8 import '../common/resolution.dart' show Feature, Resolution; |
| 9 import '../core_types.dart' show CoreClasses, CoreTypes; | 9 import '../core_types.dart' show CoreClasses, CoreTypes; |
| 10 import '../dart_types.dart'; | 10 import '../dart_types.dart'; |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 typeNode.name, | 84 typeNode.name, |
| 85 MessageKind.CYCLIC_TYPE_VARIABLE, | 85 MessageKind.CYCLIC_TYPE_VARIABLE, |
| 86 {'typeVariableName': variableElement.name}); | 86 {'typeVariableName': variableElement.name}); |
| 87 } | 87 } |
| 88 break; | 88 break; |
| 89 } | 89 } |
| 90 seenTypeVariables = seenTypeVariables.prepend(element); | 90 seenTypeVariables = seenTypeVariables.prepend(element); |
| 91 bound = element.bound; | 91 bound = element.bound; |
| 92 } | 92 } |
| 93 } | 93 } |
| 94 |
| 94 addDeferredAction(element, checkTypeVariableBound); | 95 addDeferredAction(element, checkTypeVariableBound); |
| 95 } else { | 96 } else { |
| 96 variableElement.boundCache = objectType; | 97 variableElement.boundCache = objectType; |
| 97 } | 98 } |
| 98 nodeLink = nodeLink.tail; | 99 nodeLink = nodeLink.tail; |
| 99 } | 100 } |
| 100 assert(!types.moveNext()); | 101 assert(!types.moveNext()); |
| 101 } | 102 } |
| 102 } | 103 } |
| 103 | 104 |
| (...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 643 Identifier selector = node.selector.asIdentifier(); | 644 Identifier selector = node.selector.asIdentifier(); |
| 644 var e = prefixElement.lookupLocalMember(selector.source); | 645 var e = prefixElement.lookupLocalMember(selector.source); |
| 645 if (e == null || !e.impliesType) { | 646 if (e == null || !e.impliesType) { |
| 646 reporter.reportErrorMessage(node.selector, | 647 reporter.reportErrorMessage(node.selector, |
| 647 MessageKind.CANNOT_RESOLVE_TYPE, {'typeName': node.selector}); | 648 MessageKind.CANNOT_RESOLVE_TYPE, {'typeName': node.selector}); |
| 648 return; | 649 return; |
| 649 } | 650 } |
| 650 loadSupertype(e, node); | 651 loadSupertype(e, node); |
| 651 } | 652 } |
| 652 } | 653 } |
| OLD | NEW |