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

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

Issue 2119193002: Compute correct names for closures in operator methods. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 5 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.dart'; 8 import '../common.dart';
9 import '../constants/values.dart' 9 import '../constants/values.dart'
10 show ConstantValue, ConstructedConstantValue, StringConstantValue; 10 show ConstantValue, ConstructedConstantValue, StringConstantValue;
11 import '../dart_types.dart' 11 import '../dart_types.dart' show DartType, DynamicType, FunctionType;
Johnni Winther 2016/07/04 13:40:36 dartfmt
12 show
13 DartType,
14 DynamicType,
15 FunctionType;
16 import '../diagnostics/messages.dart' show MessageKind; 12 import '../diagnostics/messages.dart' show MessageKind;
17 import '../elements/elements.dart' 13 import '../elements/elements.dart'
18 show 14 show
19 ClassElement, 15 ClassElement,
20 Element, 16 Element,
21 FieldElement, 17 FieldElement,
22 FunctionElement, 18 FunctionElement,
23 LibraryElement, 19 LibraryElement,
24 ParameterElement, 20 ParameterElement,
25 MetadataAnnotation; 21 MetadataAnnotation;
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 } 184 }
189 }); 185 });
190 }); 186 });
191 return new jsAst.Block(statements); 187 return new jsAst.Block(statements);
192 } 188 }
193 189
194 FunctionType buildJsFunctionType() { 190 FunctionType buildJsFunctionType() {
195 // TODO(jacobr): consider using codegenWorld.isChecks to determine the 191 // TODO(jacobr): consider using codegenWorld.isChecks to determine the
196 // range of positional arguments that need to be supported by JavaScript 192 // range of positional arguments that need to be supported by JavaScript
197 // function types. 193 // function types.
198 return new FunctionType.synthesized( 194 return new FunctionType.synthesized(const DynamicType(), [],
199 const DynamicType(), 195 new List<DartType>.filled(16, const DynamicType()));
200 [],
201 new List<DartType>.filled(16, const DynamicType()));
202 } 196 }
203 } 197 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698