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

Side by Side Diff: pkg/front_end/lib/incremental_kernel_generator.dart

Issue 2975143002: Remove KernelDriver/IKG.invalidateAll(). (Closed)
Patch Set: Created 3 years, 5 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
« no previous file with comments | « no previous file | pkg/front_end/lib/src/incremental/kernel_driver.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/src/base/processed_options.dart'; 7 import 'package:front_end/src/base/processed_options.dart';
8 import 'package:front_end/src/incremental_kernel_generator_impl.dart'; 8 import 'package:front_end/src/incremental_kernel_generator_impl.dart';
9 import 'package:kernel/kernel.dart'; 9 import 'package:kernel/kernel.dart';
10 10
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 /// source code), the caller may consider the previous file state and the set 82 /// source code), the caller may consider the previous file state and the set
83 /// of valid sources to be unchanged; this means that once the user fixes the 83 /// of valid sources to be unchanged; this means that once the user fixes the
84 /// errors, it is safe to call [computeDelta] again. 84 /// errors, it is safe to call [computeDelta] again.
85 Future<DeltaProgram> computeDelta(); 85 Future<DeltaProgram> computeDelta();
86 86
87 /// Remove the file associated with the given file [uri] from the set of 87 /// Remove the file associated with the given file [uri] from the set of
88 /// valid files. This guarantees that those files will be re-read on the 88 /// valid files. This guarantees that those files will be re-read on the
89 /// next call to [computeDelta]). 89 /// next call to [computeDelta]).
90 void invalidate(Uri uri); 90 void invalidate(Uri uri);
91 91
92 /// Remove all source files from the set of valid sources. This guarantees
93 /// that all files will be re-read on the next call to [computeDelta].
94 ///
95 /// Note that this does not erase the previous program state; the next time
96 /// [computeDelta] is called, if parts of the program are discovered to be
97 /// unchanged, parts of the previous program state will still be re-used to
98 /// speed up compilation.
99 void invalidateAll();
100
101 /// Creates an [IncrementalKernelGenerator] which is prepared to generate 92 /// Creates an [IncrementalKernelGenerator] which is prepared to generate
102 /// kernel representations of the program whose main library is in the given 93 /// kernel representations of the program whose main library is in the given
103 /// [entryPoint]. 94 /// [entryPoint].
104 /// 95 ///
105 /// The initial "previous program state" is an empty program containing no 96 /// The initial "previous program state" is an empty program containing no
106 /// code, and the initial set of valid sources is empty. To obtain a kernel 97 /// code, and the initial set of valid sources is empty. To obtain a kernel
107 /// representation of the program, call [computeDelta]. 98 /// representation of the program, call [computeDelta].
108 static Future<IncrementalKernelGenerator> newInstance( 99 static Future<IncrementalKernelGenerator> newInstance(
109 CompilerOptions options, Uri entryPoint, 100 CompilerOptions options, Uri entryPoint,
110 {WatchUsedFilesFn watch}) async { 101 {WatchUsedFilesFn watch}) async {
111 var processedOptions = new ProcessedOptions(options); 102 var processedOptions = new ProcessedOptions(options);
112 var uriTranslator = await processedOptions.getUriTranslator(); 103 var uriTranslator = await processedOptions.getUriTranslator();
113 return new IncrementalKernelGeneratorImpl( 104 return new IncrementalKernelGeneratorImpl(
114 processedOptions, uriTranslator, entryPoint, 105 processedOptions, uriTranslator, entryPoint,
115 watch: watch); 106 watch: watch);
116 } 107 }
117 } 108 }
OLDNEW
« no previous file with comments | « no previous file | pkg/front_end/lib/src/incremental/kernel_driver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698