| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |