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

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

Issue 2606253002: Move dart_types to elements/resolution_types (Closed)
Patch Set: Created 3 years, 11 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' show DartType, DynamicType, FunctionType; 11 import '../elements/resolution_types.dart'
12 show DartType, DynamicType, FunctionType;
12 import '../diagnostics/messages.dart' show MessageKind; 13 import '../diagnostics/messages.dart' show MessageKind;
13 import '../elements/elements.dart' 14 import '../elements/elements.dart'
14 show 15 show
15 ClassElement, 16 ClassElement,
16 Element, 17 Element,
17 FieldElement, 18 FieldElement,
18 FunctionElement, 19 FunctionElement,
19 LibraryElement, 20 LibraryElement,
20 ParameterElement, 21 ParameterElement,
21 MetadataAnnotation; 22 MetadataAnnotation;
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 } 189 }
189 190
190 FunctionType buildJsFunctionType() { 191 FunctionType buildJsFunctionType() {
191 // TODO(jacobr): consider using codegenWorld.isChecks to determine the 192 // TODO(jacobr): consider using codegenWorld.isChecks to determine the
192 // range of positional arguments that need to be supported by JavaScript 193 // range of positional arguments that need to be supported by JavaScript
193 // function types. 194 // function types.
194 return new FunctionType.synthesized(const DynamicType(), [], 195 return new FunctionType.synthesized(const DynamicType(), [],
195 new List<DartType>.filled(16, const DynamicType())); 196 new List<DartType>.filled(16, const DynamicType()));
196 } 197 }
197 } 198 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/js_backend/enqueuer.dart ('k') | pkg/compiler/lib/src/js_backend/lookup_map_analysis.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698