| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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.js_backend.patch_resolver; | 5 library dart2js.js_backend.patch_resolver; |
| 6 | 6 |
| 7 import '../common.dart'; | 7 import '../common.dart'; |
| 8 import '../common/resolution.dart' show Resolution; | 8 import '../common/resolution.dart' show Resolution; |
| 9 import '../common/tasks.dart' show CompilerTask; | 9 import '../common/tasks.dart' show CompilerTask; |
| 10 import '../compiler.dart' show Compiler; | 10 import '../compiler.dart' show Compiler; |
| 11 import '../dart_types.dart'; | 11 import '../elements/resolution_types.dart'; |
| 12 import '../elements/elements.dart'; | 12 import '../elements/elements.dart'; |
| 13 import '../elements/modelx.dart'; | 13 import '../elements/modelx.dart'; |
| 14 import '../tree/tree.dart'; | 14 import '../tree/tree.dart'; |
| 15 | 15 |
| 16 class PatchResolverTask extends CompilerTask { | 16 class PatchResolverTask extends CompilerTask { |
| 17 final Compiler compiler; | 17 final Compiler compiler; |
| 18 PatchResolverTask(Compiler compiler) | 18 PatchResolverTask(Compiler compiler) |
| 19 : compiler = compiler, | 19 : compiler = compiler, |
| 20 super(compiler.measurer); | 20 super(compiler.measurer); |
| 21 | 21 |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 'originParameterCount': originSignature.optionalParameterCount, | 171 'originParameterCount': originSignature.optionalParameterCount, |
| 172 'patchParameterCount': patchSignature.optionalParameterCount | 172 'patchParameterCount': patchSignature.optionalParameterCount |
| 173 }); | 173 }); |
| 174 }); | 174 }); |
| 175 } else { | 175 } else { |
| 176 checkMatchingPatchParameters(origin, originSignature.optionalParameters, | 176 checkMatchingPatchParameters(origin, originSignature.optionalParameters, |
| 177 patchSignature.optionalParameters); | 177 patchSignature.optionalParameters); |
| 178 } | 178 } |
| 179 } | 179 } |
| 180 } | 180 } |
| OLD | NEW |