Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(111)

Side by Side Diff: pkg/compiler/lib/src/js_backend/patch_resolver.dart

Issue 1173403002: dart2js: Fix hints in code base. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Updated to latest revision Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 '../dart2jslib.dart'; 7 import '../dart2jslib.dart';
8 import '../dart_types.dart'; 8 import '../dart_types.dart';
9 import '../elements/elements.dart'; 9 import '../elements/elements.dart';
10 import '../elements/modelx.dart'; 10 import '../elements/modelx.dart';
11 import '../resolution/resolution.dart';
12 import '../tree/tree.dart'; 11 import '../tree/tree.dart';
13 import '../util/util.dart';
14 12
15 class PatchResolverTask extends CompilerTask { 13 class PatchResolverTask extends CompilerTask {
16 PatchResolverTask(Compiler compiler) : super(compiler); 14 PatchResolverTask(Compiler compiler) : super(compiler);
17 15
18 String get name => 'JavaScript patch resolver'; 16 String get name => 'JavaScript patch resolver';
19 17
20 FunctionElement resolveExternalFunction(FunctionElementX element) { 18 FunctionElement resolveExternalFunction(FunctionElementX element) {
21 if (element.isPatched) { 19 if (element.isPatched) {
22 FunctionElementX patch = element.patch; 20 FunctionElementX patch = element.patch;
23 compiler.withCurrentElement(patch, () { 21 compiler.withCurrentElement(patch, () {
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 'patchParameterCount': patchSignature.optionalParameterCount}); 145 'patchParameterCount': patchSignature.optionalParameterCount});
148 }); 146 });
149 } else { 147 } else {
150 checkMatchingPatchParameters(origin, 148 checkMatchingPatchParameters(origin,
151 originSignature.optionalParameters, 149 originSignature.optionalParameters,
152 patchSignature.optionalParameters); 150 patchSignature.optionalParameters);
153 } 151 }
154 } 152 }
155 153
156 } 154 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698