| OLD | NEW |
| 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, 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 import 'dart:async'; | 5 import 'dart:async'; |
| 6 | 6 |
| 7 import 'package:front_end/file_system.dart'; | 7 import 'package:front_end/file_system.dart'; |
| 8 import 'package:front_end/incremental_kernel_generator.dart'; | 8 import 'package:front_end/incremental_kernel_generator.dart'; |
| 9 import 'package:front_end/incremental_resolved_ast_generator.dart'; | 9 import 'package:front_end/incremental_resolved_ast_generator.dart'; |
| 10 import 'package:front_end/src/base/processed_options.dart'; | 10 import 'package:front_end/src/base/processed_options.dart'; |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 kernelTarget.read(_entryPoint); | 55 kernelTarget.read(_entryPoint); |
| 56 | 56 |
| 57 // TODO(scheglov) Replace with a better API. | 57 // TODO(scheglov) Replace with a better API. |
| 58 // Firstly, we don't "write" anything here. | 58 // Firstly, we don't "write" anything here. |
| 59 // Secondly, it catches all the exceptions and write them to `stderr`. | 59 // Secondly, it catches all the exceptions and write them to `stderr`. |
| 60 // This is too interactive and not API-clients friendly. | 60 // This is too interactive and not API-clients friendly. |
| 61 await kernelTarget.writeOutline(null); | 61 await kernelTarget.writeOutline(null); |
| 62 | 62 |
| 63 // TODO(scheglov) Replace with a better API. | 63 // TODO(scheglov) Replace with a better API. |
| 64 Program program = await kernelTarget.writeProgram(null); | 64 Program program = await kernelTarget.writeProgram(null); |
| 65 return new DeltaProgram({_entryPoint: program}); | 65 return new DeltaProgram(program); |
| 66 } | 66 } |
| 67 | 67 |
| 68 @override | 68 @override |
| 69 void invalidate(String path) => unimplemented(); | 69 void invalidate(String path) => unimplemented(); |
| 70 | 70 |
| 71 @override | 71 @override |
| 72 void invalidateAll() => unimplemented(); | 72 void invalidateAll() => unimplemented(); |
| 73 | 73 |
| 74 /// Return the [DillTarget] that is used inside of [KernelTarget] to | 74 /// Return the [DillTarget] that is used inside of [KernelTarget] to |
| 75 /// resynthesize SDK libraries. | 75 /// resynthesize SDK libraries. |
| (...skipping 14 matching lines...) Expand all Loading... |
| 90 | 90 |
| 91 ///// Clears canonical names of [NamedNode] references. | 91 ///// Clears canonical names of [NamedNode] references. |
| 92 //class _ClearCanonicalNamesVisitor extends Visitor { | 92 //class _ClearCanonicalNamesVisitor extends Visitor { |
| 93 // defaultNode(Node node) { | 93 // defaultNode(Node node) { |
| 94 // if (node is NamedNode) { | 94 // if (node is NamedNode) { |
| 95 // node.reference.canonicalName = null; | 95 // node.reference.canonicalName = null; |
| 96 // } | 96 // } |
| 97 // node.visitChildren(this); | 97 // node.visitChildren(this); |
| 98 // } | 98 // } |
| 99 //} | 99 //} |
| OLD | NEW |