| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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.compiler_base; | 5 library dart2js.compiler_base; |
| 6 | 6 |
| 7 import 'dart:async' show | 7 import 'dart:async' show |
| 8 EventSink, | 8 EventSink, |
| 9 Future; | 9 Future; |
| 10 | 10 |
| (...skipping 1157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1168 MessageKind.GENERIC, | 1168 MessageKind.GENERIC, |
| 1169 {'text': 'Warning: $e resolved but not compiled.'}); | 1169 {'text': 'Warning: $e resolved but not compiled.'}); |
| 1170 } | 1170 } |
| 1171 } | 1171 } |
| 1172 | 1172 |
| 1173 WorldImpact analyzeElement(Element element) { | 1173 WorldImpact analyzeElement(Element element) { |
| 1174 assert(invariant(element, | 1174 assert(invariant(element, |
| 1175 element.impliesType || | 1175 element.impliesType || |
| 1176 element.isField || | 1176 element.isField || |
| 1177 element.isFunction || | 1177 element.isFunction || |
| 1178 element.isGenerativeConstructor || | 1178 element.isConstructor || |
| 1179 element.isGetter || | 1179 element.isGetter || |
| 1180 element.isSetter, | 1180 element.isSetter, |
| 1181 message: 'Unexpected element kind: ${element.kind}')); | 1181 message: 'Unexpected element kind: ${element.kind}')); |
| 1182 assert(invariant(element, element is AnalyzableElement, | 1182 assert(invariant(element, element is AnalyzableElement, |
| 1183 message: 'Element $element is not analyzable.')); | 1183 message: 'Element $element is not analyzable.')); |
| 1184 assert(invariant(element, element.isDeclaration)); | 1184 assert(invariant(element, element.isDeclaration)); |
| 1185 return resolution.computeWorldImpact(element); | 1185 return resolution.computeWorldImpact(element); |
| 1186 } | 1186 } |
| 1187 | 1187 |
| 1188 WorldImpact analyze(ResolutionWorkItem work, | 1188 WorldImpact analyze(ResolutionWorkItem work, |
| (...skipping 853 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2042 if (_otherDependencies == null) { | 2042 if (_otherDependencies == null) { |
| 2043 _otherDependencies = new Setlet<Element>(); | 2043 _otherDependencies = new Setlet<Element>(); |
| 2044 } | 2044 } |
| 2045 _otherDependencies.add(element.implementation); | 2045 _otherDependencies.add(element.implementation); |
| 2046 } | 2046 } |
| 2047 | 2047 |
| 2048 Iterable<Element> get otherDependencies { | 2048 Iterable<Element> get otherDependencies { |
| 2049 return _otherDependencies != null ? _otherDependencies : const <Element>[]; | 2049 return _otherDependencies != null ? _otherDependencies : const <Element>[]; |
| 2050 } | 2050 } |
| 2051 } | 2051 } |
| OLD | NEW |