| 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/elements/elements.dart'; |
| 8 import 'package:compiler/src/dart_backend/dart_backend.dart'; | 8 import 'package:compiler/src/dart_backend/dart_backend.dart'; |
| 9 import 'package:compiler/src/dart2jslib.dart'; | 9 import 'package:compiler/src/dart2jslib.dart'; |
| 10 import 'package:compiler/src/dart_types.dart'; | 10 import 'package:compiler/src/dart_types.dart'; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 libraries: convertedWorld.libraries, | 21 libraries: convertedWorld.libraries, |
| 22 instantiatedClasses: convertedWorld.instantiatedClasses, | 22 instantiatedClasses: convertedWorld.instantiatedClasses, |
| 23 resolvedElements: convertedWorld.resolvedElements, | 23 resolvedElements: convertedWorld.resolvedElements, |
| 24 mainFunction: convertedWorld.mainFunction, | 24 mainFunction: convertedWorld.mainFunction, |
| 25 computeElementAst: (Element element) { | 25 computeElementAst: (Element element) { |
| 26 return DartBackend.createElementAst( | 26 return DartBackend.createElementAst( |
| 27 context, | 27 context, |
| 28 element, | 28 element, |
| 29 convertedWorld.getIr(element)); | 29 convertedWorld.getIr(element)); |
| 30 }, | 30 }, |
| 31 shouldOutput: (_) => true, | 31 shouldOutput: (Element element) => !element.isSynthesized, |
| 32 isSafeToRemoveTypeDeclarations: (_) => false); | 32 isSafeToRemoveTypeDeclarations: (_) => false); |
| 33 } | 33 } |
| 34 | 34 |
| 35 class _ElementAstCreationContext implements ElementAstCreationContext { | 35 class _ElementAstCreationContext implements ElementAstCreationContext { |
| 36 final Listener listener; | 36 final Listener listener; |
| 37 | 37 |
| 38 @override | 38 @override |
| 39 final DartTypes dartTypes; | 39 final DartTypes dartTypes; |
| 40 | 40 |
| 41 _ElementAstCreationContext(this.listener, this.dartTypes); | 41 _ElementAstCreationContext(this.listener, this.dartTypes); |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 @override | 100 @override |
| 101 spanFromSpannable(Spannable node) { | 101 spanFromSpannable(Spannable node) { |
| 102 // TODO: implement spanFromSpannable | 102 // TODO: implement spanFromSpannable |
| 103 } | 103 } |
| 104 | 104 |
| 105 @override | 105 @override |
| 106 withCurrentElement(element, f()) { | 106 withCurrentElement(element, f()) { |
| 107 // TODO: implement withCurrentElement | 107 // TODO: implement withCurrentElement |
| 108 } | 108 } |
| 109 } | 109 } |
| OLD | NEW |