| 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.resolution; | 5 library dart2js.resolution; |
| 6 | 6 |
| 7 import 'dart:collection' show Queue; | 7 import 'dart:collection' show Queue; |
| 8 | 8 |
| 9 import '../common.dart'; | 9 import '../common.dart'; |
| 10 import '../common/names.dart' show | 10 import '../common/names.dart' show |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 case AsyncMarker.SYNC_STAR: | 185 case AsyncMarker.SYNC_STAR: |
| 186 compiler.iterableClass.ensureResolved(resolution); | 186 compiler.iterableClass.ensureResolved(resolution); |
| 187 break; | 187 break; |
| 188 } | 188 } |
| 189 } | 189 } |
| 190 } | 190 } |
| 191 | 191 |
| 192 bool _isNativeClassOrExtendsNativeClass(ClassElement classElement) { | 192 bool _isNativeClassOrExtendsNativeClass(ClassElement classElement) { |
| 193 assert(classElement != null); | 193 assert(classElement != null); |
| 194 while (classElement != null) { | 194 while (classElement != null) { |
| 195 if (classElement.isNative) return true; | 195 if (compiler.backend.isNative(classElement)) return true; |
| 196 classElement = classElement.superclass; | 196 classElement = classElement.superclass; |
| 197 } | 197 } |
| 198 return false; | 198 return false; |
| 199 } | 199 } |
| 200 | 200 |
| 201 WorldImpact resolveMethodElementImplementation( | 201 WorldImpact resolveMethodElementImplementation( |
| 202 FunctionElement element, FunctionExpression tree) { | 202 FunctionElement element, FunctionExpression tree) { |
| 203 return reporter.withCurrentElement(element, () { | 203 return reporter.withCurrentElement(element, () { |
| 204 if (element.isExternal && tree.hasBody()) { | 204 if (element.isExternal && tree.hasBody()) { |
| 205 reporter.reportErrorMessage( | 205 reporter.reportErrorMessage( |
| (...skipping 870 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1076 TreeElements get treeElements { | 1076 TreeElements get treeElements { |
| 1077 assert(invariant(this, _treeElements !=null, | 1077 assert(invariant(this, _treeElements !=null, |
| 1078 message: "TreeElements have not been computed for $this.")); | 1078 message: "TreeElements have not been computed for $this.")); |
| 1079 return _treeElements; | 1079 return _treeElements; |
| 1080 } | 1080 } |
| 1081 | 1081 |
| 1082 void reuseElement() { | 1082 void reuseElement() { |
| 1083 _treeElements = null; | 1083 _treeElements = null; |
| 1084 } | 1084 } |
| 1085 } | 1085 } |
| OLD | NEW |