| OLD | NEW |
| 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, 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 part of dart2js.kernel.element_map; | 5 part of dart2js.kernel.element_map; |
| 6 | 6 |
| 7 class KernelNoSuchMethodResolver implements NoSuchMethodResolver { | 7 class KernelNoSuchMethodResolver implements NoSuchMethodResolver { |
| 8 final KernelToElementMap elementMap; | 8 final KernelToElementMapImpl elementMap; |
| 9 | 9 |
| 10 KernelNoSuchMethodResolver(this.elementMap); | 10 KernelNoSuchMethodResolver(this.elementMap); |
| 11 | 11 |
| 12 ElementEnvironment get _elementEnvironment => elementMap.elementEnvironment; | 12 ElementEnvironment get _elementEnvironment => elementMap.elementEnvironment; |
| 13 | 13 |
| 14 CommonElements get _commonElements => elementMap.commonElements; | 14 CommonElements get _commonElements => elementMap.commonElements; |
| 15 | 15 |
| 16 @override | 16 @override |
| 17 bool hasForwardingSyntax(KFunction method) { | 17 bool hasForwardingSyntax(KFunction method) { |
| 18 ir.Procedure node = elementMap._lookupProcedure(method); | 18 ir.Procedure node = elementMap._lookupProcedure(method); |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 break; | 82 break; |
| 83 } | 83 } |
| 84 } | 84 } |
| 85 FunctionEntity function = _elementEnvironment.lookupClassMember( | 85 FunctionEntity function = _elementEnvironment.lookupClassMember( |
| 86 _commonElements.objectClass, Identifiers.noSuchMethod_); | 86 _commonElements.objectClass, Identifiers.noSuchMethod_); |
| 87 assert(invariant(method, function != null, | 87 assert(invariant(method, function != null, |
| 88 message: "No super noSuchMethod found for $method.")); | 88 message: "No super noSuchMethod found for $method.")); |
| 89 return function; | 89 return function; |
| 90 } | 90 } |
| 91 } | 91 } |
| OLD | NEW |