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

Unified Diff: pkg/front_end/test/incremental_kernel_generator_test.dart

Issue 2869273006: Replace factory constructor with a static method for creating IncrementalKernelGenerator. (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/front_end/lib/src/incremental_kernel_generator_impl.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/test/incremental_kernel_generator_test.dart
diff --git a/pkg/front_end/test/incremental_kernel_generator_test.dart b/pkg/front_end/test/incremental_kernel_generator_test.dart
index 80197a200e260e89637d9b535ef7ade8f53e37c4..f9e6846e87f8174a24082da3a5e2d39359066158 100644
--- a/pkg/front_end/test/incremental_kernel_generator_test.dart
+++ b/pkg/front_end/test/incremental_kernel_generator_test.dart
@@ -35,14 +35,14 @@ class IncrementalKernelGeneratorTest {
// TODO(scheglov) Make `.packages` file optional.
- incrementalKernelGenerator = new IncrementalKernelGenerator(
- entryPoint,
- new CompilerOptions()
- ..fileSystem = fileSystem
- ..strongMode = true
- ..chaseDependencies = true
- ..dartLibraries = dartLibraries
- ..packagesFileUri = Uri.parse('file:///test/.packages'));
+ var compilerOptions = new CompilerOptions()
+ ..fileSystem = fileSystem
+ ..strongMode = true
+ ..chaseDependencies = true
+ ..dartLibraries = dartLibraries
+ ..packagesFileUri = Uri.parse('file:///test/.packages');
+ incrementalKernelGenerator = await IncrementalKernelGenerator.newInstance(
+ compilerOptions, entryPoint);
return (await incrementalKernelGenerator.computeDelta()).newProgram;
}
« no previous file with comments | « pkg/front_end/lib/src/incremental_kernel_generator_impl.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698