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

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

Issue 1762723002: Cleanup 1: split parts into their own libraries, remove unused imports (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 /// Analysis to determine how to generate code for typed JavaScript interop. 5 /// Analysis to determine how to generate code for typed JavaScript interop.
6 library compiler.src.js_backend.js_interop_analysis; 6 library compiler.src.js_backend.js_interop_analysis;
7 7
8 import '../common/names.dart' show Identifiers;
9 import '../compiler.dart' show Compiler;
10 import '../diagnostics/messages.dart' show MessageKind; 8 import '../diagnostics/messages.dart' show MessageKind;
11 import '../constants/values.dart' 9 import '../constants/values.dart'
12 show 10 show
13 ConstantValue, 11 ConstantValue,
14 ConstructedConstantValue, 12 ConstructedConstantValue,
15 ListConstantValue, 13 ListConstantValue,
16 NullConstantValue, 14 NullConstantValue,
17 StringConstantValue, 15 StringConstantValue,
18 TypeConstantValue; 16 TypeConstantValue;
19 import '../elements/elements.dart' 17 import '../elements/elements.dart'
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 var name = backend.namer.invocationName(selector); 186 var name = backend.namer.invocationName(selector);
189 statements.add(js.statement( 187 statements.add(js.statement(
190 'Function.prototype.# = function(#) { return this(#) }', 188 'Function.prototype.# = function(#) { return this(#) }',
191 [name, parameters, parameters])); 189 [name, parameters, parameters]));
192 } 190 }
193 }); 191 });
194 }); 192 });
195 return new jsAst.Block(statements); 193 return new jsAst.Block(statements);
196 } 194 }
197 } 195 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698