OLD | NEW |
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 analyzer2dart.dart_backend; | 5 library analyzer2dart.dart_backend; |
6 | 6 |
7 import 'package:compiler/src/elements/elements.dart'; | 7 import 'package:compiler/src/constant_system_dart.dart'; |
| 8 import 'package:compiler/src/constants/constant_system.dart'; |
8 import 'package:compiler/src/dart_backend/dart_backend.dart'; | 9 import 'package:compiler/src/dart_backend/dart_backend.dart'; |
9 import 'package:compiler/src/dart2jslib.dart'; | 10 import 'package:compiler/src/dart2jslib.dart'; |
10 import 'package:compiler/src/dart_types.dart'; | 11 import 'package:compiler/src/dart_types.dart'; |
| 12 import 'package:compiler/src/elements/elements.dart'; |
11 | 13 |
12 import 'driver.dart'; | 14 import 'driver.dart'; |
13 import 'converted_world.dart'; | 15 import 'converted_world.dart'; |
14 | 16 |
15 void compileToDart(Driver driver, ConvertedWorld convertedWorld) { | 17 void compileToDart(Driver driver, ConvertedWorld convertedWorld) { |
16 DiagnosticListener listener = new Listener(); | 18 DiagnosticListener listener = new Listener(); |
17 DartOutputter outputter = new DartOutputter(listener, driver.outputProvider); | 19 DartOutputter outputter = new DartOutputter(listener, driver.outputProvider); |
18 ElementAstCreationContext context = new _ElementAstCreationContext( | 20 ElementAstCreationContext context = new _ElementAstCreationContext( |
19 listener, convertedWorld.dartTypes); | 21 listener, convertedWorld.dartTypes); |
20 outputter.assembleProgram( | 22 outputter.assembleProgram( |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 @override | 102 @override |
101 spanFromSpannable(Spannable node) { | 103 spanFromSpannable(Spannable node) { |
102 // TODO: implement spanFromSpannable | 104 // TODO: implement spanFromSpannable |
103 } | 105 } |
104 | 106 |
105 @override | 107 @override |
106 withCurrentElement(element, f()) { | 108 withCurrentElement(element, f()) { |
107 // TODO: implement withCurrentElement | 109 // TODO: implement withCurrentElement |
108 } | 110 } |
109 } | 111 } |
OLD | NEW |