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

Side by Side Diff: pkg/front_end/lib/src/incremental_kernel_generator_impl.dart

Issue 2871573003: Update DeltaProgram API and documentation. (Closed)
Patch Set: Created 3 years, 7 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) 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
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
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 //}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698