| 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/resolution.dart' show | 8 import '../common/resolution.dart' show |
| 8 Resolution; | 9 Resolution; |
| 9 import '../common/tasks.dart' show | 10 import '../common/tasks.dart' show |
| 10 CompilerTask; | 11 CompilerTask; |
| 11 import '../compiler.dart' show | 12 import '../compiler.dart' show |
| 12 Compiler; | 13 Compiler; |
| 13 import '../dart_types.dart'; | 14 import '../dart_types.dart'; |
| 14 import '../diagnostics/diagnostic_listener.dart' show | |
| 15 DiagnosticMessage; | |
| 16 import '../diagnostics/invariant.dart' show | |
| 17 invariant; | |
| 18 import '../diagnostics/messages.dart' show | |
| 19 MessageKind; | |
| 20 import '../elements/elements.dart'; | 15 import '../elements/elements.dart'; |
| 21 import '../elements/modelx.dart'; | 16 import '../elements/modelx.dart'; |
| 22 import '../tree/tree.dart'; | 17 import '../tree/tree.dart'; |
| 23 | 18 |
| 24 class PatchResolverTask extends CompilerTask { | 19 class PatchResolverTask extends CompilerTask { |
| 25 PatchResolverTask(Compiler compiler) : super(compiler); | 20 PatchResolverTask(Compiler compiler) : super(compiler); |
| 26 | 21 |
| 27 Resolution get resolution => compiler.resolution; | 22 Resolution get resolution => compiler.resolution; |
| 28 | 23 |
| 29 String get name => 'JavaScript patch resolver'; | 24 String get name => 'JavaScript patch resolver'; |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 'patchParameterCount': patchSignature.optionalParameterCount}); | 159 'patchParameterCount': patchSignature.optionalParameterCount}); |
| 165 }); | 160 }); |
| 166 } else { | 161 } else { |
| 167 checkMatchingPatchParameters(origin, | 162 checkMatchingPatchParameters(origin, |
| 168 originSignature.optionalParameters, | 163 originSignature.optionalParameters, |
| 169 patchSignature.optionalParameters); | 164 patchSignature.optionalParameters); |
| 170 } | 165 } |
| 171 } | 166 } |
| 172 | 167 |
| 173 } | 168 } |
| OLD | NEW |